flying circus game
1.0.0
#Beginner Code for Random Number Game
importar aleatoriamente random_number = random.randint (0,10) tenta = 0 tenta_remaining = 10 print (random_number)
enquanto tenta <10: adivinhe = entrada ("adivinhe 1 a 9.") tenta += 1 tenta_remaining -= 1
Tente: adivinhe_num = int (adivinhe), exceto: print ("número inteiro doof") quebra
if not guess_num > 0 or not guess_num < 10:
print("can you count?")
break
else guess_num == random_number:
print("Bingo, got it!")
print("you used {} tries.".format(tries))
user_input = input(")
if user_input == "!":
print("type ! to exit cowboy")
break
else guess_num < random_number:
if tries_remaining > 0:
print("too low, go higher! {} tries left.".format(int(tries_remaining)))
continue
else:
print("waaaa waah! {}".format(random_number))
print("2 oz sparrows don't carry coconuts, try again")
else guess_num > random_number:
if tries_remaining > 0:
print("noooo! go lower! {} tries remaining.".format(int(tries_remaining)))
continue
else:
print("BZZZZT! you lose, the number was {}".format(random_number))
print("nothing but a mere flesh wound, try again")
user_input = input (") se user_input =="! ": print (" tipo! Para fugir se você se sentir reprimido ")
quebrar