Sample of code to ask the same question
what do you think about this sample of code:
import numpy as np
season = ["summer", "autumn", "winter", "spring"]
i = np.random.randint(0,4)
word = season[i]
guess = input("I'm thnking of a word, can you guess what is ? \n Hint is a season >>>")
guess = guess.lower()
if guess in season:
if guess == word :
print("Yes, It's", guess, ".Well done!")
print("Non, is not", guess, ".Sorry!")
print(guess.capitalize(), "is not a season")
1 answers ( 0 marked as helpful)
Thank you for your suggestion!
I think your code works exactly as expected, without any errors. Keep up the good work!
Submit an answer
Please help me here when I run this code its say edit configuration,what should I do?