Hello I am a new programmer in the Python language. I was having trouble defining the variable user_guess because I was planning on defining it later in my program when the user inputs their answer. I later found the correct answer which is what the code below represents. My question is: If I introduce my variable, but plan on defining it later in my program, do I set it equal to 0?
user_guess = 0
magic_number = 5
while user_guess != magic_number:
print("What is the magic number?")
user_guess = int(input())
print("You have correctly guessed the magic number!")