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