I'm very sorry if it's a super noob question, but I can't even get this to run properly. Am I missing something, I've been searching for 20 mins and I'm getting desperate.
num = input()
if num == 3:
print("yes its 3")
I'm very sorry if it's a super noob question, but I can't even get this to run properly. Am I missing something, I've been searching for 20 mins and I'm getting desperate.
num = input()
if num == 3:
print("yes its 3")
You have a problem with the types. num = input()
returns string
, but you compare it to int
you could try to run:
num = input()
if num == '3':
print("yes its 3")