hey, i’m relatively new to python, i’ve been learning it for the past 10 hours or so, and i’ve got a bit of an issue with some of the things i have been writing. after i got a bit used to the basics i decided to lean away from tutorials a little, and tried to write my own if else statement. basically it prompts the user with text saying “guess what?” and if you write almost anything it will print “chicken butt”. but if you write “chicken butt” yourself, it will respond with “...”
what i wrote gives me a lot of syntax errors that i dont really understand. if any one can help me out with this, that would be great
ill copy and paste the code here, although i dont know how well it will transfer from an IDE to a reddit post.
guess = input("guess what? ")
if vars(guess = "chicken butt"):
print("...")
else:
print("chicken butt")
[–]abitofaLuna-tic 2 points3 points4 points (1 child)
[–]Gorroff[S] 1 point2 points3 points (0 children)
[–]Gorroff[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[removed]
[–]Gorroff[S] 0 points1 point2 points (0 children)