def guessNum():
guess = input("guess a number between 1 and 10: ")
guesses = 3
randomNum = 7
while guess != randomNum:
guesses -=1
print("wrong," + str(guesses) + "guesses left")
guess = input("guess again ")
if guesses <= 1:
print("You lose")
break
if guess == randomNum:
print("You win")
break
print guessNum()
so im having issues with it saying false when its correct. Also when I create a function, it only executes if I give it an input. why does it require an input? cant it have 0 or guessnum(1) and put a random variable when defining it, ie def guessnum(num):