I am a novice coder who's just started coding about 4-5 weeks ago. The best I have achieved is a basic Python username and password login page for a 'top secret' website (the website is fake). However, just to refresh my memory of basic coding (I've been doing some un-related things lately), I tried making a basic childrens game to do with the alphabet. Here's my current code:
name = input("What's Your Name?: ")
print("Welcome" , name , "to the 3 lucky guess alphabet skills builder!")
print("Let's get started:")
C = input("What Is The 3rd Letter of The Alphabet: ")
if C == 'C' or 'c':
print("Congraulations!")
else:
print("Think We Should Retry That!")
C
if C == 'C' or 'c':
print("That's Better!")
Z = input("What Is The Last Letter of The Alphabet: ")
if Z == 'Z' or 'z':
print("You're Really Good At This! One More!")
else:
print("Have Another Go!")
Z
if Z == 'Z' or 'z':
print("That's More Like It! Last One!")
J = input("What Is The 10th Letter Of The Alphabet: ")
if J == 'J' or 'j':
print("Great! How Many Did You Get In Total?")
else:
print("Unlucky, Better Luck Next Time!")
total = input("How Many Did You Get In Total?: " , print("Out Of 3!")
print("Wow! You Got" , total , "! Well Done" , name , "!!!")
exit
Why aren't any of the 'else' arguments working?
Also, why won't the second to last bit of code work - it just states a syntax error!
I have tried indenting all the else statements but that results in a syntax error too!
Please help! :)