Untitled
unknown
python
2 years ago
709 B
2
Indexable
import random total = 0 repeat = 0 positive_messages = ['Awesome!', 'Great!','Fantastic!','You got it!'] negative = ['Sorry!', 'That was wrong!'] word_bank = ['C', 'G','A','T'] print("Welcome to the DNA quiz game!") name_input = input("Enter your username >> ") DNA_length_input = input(f"Hi {name_input}, please enter a positive integer for the DNA length >> ") while DNA_length_input.isdigit(): option_input = int(input("\nSelect an option [1-4] to answer a question or 5 to quit the game.\nWin the game by scoring at least 10 points! \n \n1. Complement [2 points] 2. Reverse [2 points] 3. Compress [3 points] 4. Expand [3 points] 5. Quit\n>")) while option_input != 5: if option_input == 1:
Editor is loading...