This is a 'test' from a course but it is not explaining what is wrong. I am aware this program can be written more succinctly, but for some reason the course wants me to do it like this.
import random
# 🚨 Don't change the code below 👇
test_seed = int(input("Create a seed number: "))
random.seed(test_seed)
# 🚨 Don't change the code above 👆 It's only for testing your code.
#Write the rest of your code below this line 👇
test_seed = random.randint (0,1)
if test_seed == 0:
print ("Heads")
elif test_seed == 1:
print ("Tails")
Aucun commentaire:
Enregistrer un commentaire