Hello, this is my first time in python and i need help with my code, i want to guess a number between 1-100, but the problem is i can only guess 1-3times , i want to guess until i get the correct answer, can you help me?
import random gissat = 0 rätt = random.randint(1, 100) print("Gissa talet:") while gissat<rätt: gissat = input() gissat = int(gissat) if gissat<rätt: print ("För litet!") if gissat>rätt: print ("För stort!") if gissat==rätt: break