I'm trying to create a variable that's a string from a list The list is just the alphabet (Don't ask why, it just has to for the program)
passwords = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]
Basically, I used to have a variable that took 4 random letters from it to create one string that looked like this:
correctPassword = random.sample(passwords,4)
What I need is 4 specific characters from the list to create the same kind of string variable, the word "STOP".
An answer to this would be greatly appreciated, I'm trying to recreate the hacking minigame from Fallout, if any of you know what that is, thanks!
passwords = list(string.ascii_uppercase)