shouldn't this code theoretically work, i am new to python coding and i am having a hard time working with this, I'm just doing some practices to get the hang of it.
answer = input()
if answer = 6:
print("you are correct")
else:
print("try again")
Read more here: https://stackoverflow.com/questions/65725942/im-new-to-python-and-i-am-getting-a-error-for-the-first-if-statement
Content Attribution
This content was originally published by Jeremiah Harshfield at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.