import random 
Chances=5 
Score=0 
 
 
while Chances>0: 
 
mylist=['Moscow','Berlin','Vancouver','SaintPetersburg','Chicago'] 
random_item=random.choice(mylist) 
print(mylist) 
print (random_item) 
user_guess=input("guess a word:") 
if user_guess==random_item:  
print("Chances remaining:",Chances) 
print("Correct guess") 
Score=Score+100 
else: 
Chances=Chances-1 
print("Sorry, wrong choice") 
print("Chances remaining:",Chances) 
print("The correct answer was:",random_item) 
 
print("Your score now is:",Score)  | 
                    
                            
                            
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment