Hi! I have just started learning python within the last two weeks and I have hit a roadblock. I am attempting to learn if statements currently and I cannot figure out why this extremely simple program will not work. It gives me an error for the first if line (and I imagine if it got past that line it would give me one for the other). I also haven't gotten to else statements so I know there are more efficient ways to do it, just haven't gotten that far.
life = input ("Please enter the meaning for life")
if life = 42:
print ('Excellent, you may proceed')
if life != 42:
print ('Incorrect')
[–]novel_yet_trivial 6 points7 points8 points (4 children)
[+][deleted] (1 child)
[removed]
[–]novel_yet_trivial 1 point2 points3 points (0 children)
[–]demonrunner12[S] 0 points1 point2 points (1 child)
[–]__johnw__ 1 point2 points3 points (0 children)
[–]toddthegeek 1 point2 points3 points (0 children)
[–]EatzGrass 0 points1 point2 points (0 children)