+ 1
Why does this always say syntax error
The code im using is pyhton l = b i = input ("whats letter does my name start with?") if i == l print("yes correct!") else: print("no brayden starts with a b!")
4 Respuestas
+ 2
Depends of what the l variable should have in value.
If it's a string, just add "b".
If not, create a variable called b or functions, objects etc.
+ 2
First, in "l = b" the b is not defined, you need to define b before using it.
And an error in the if statement, : is missing after l.
+ 1
l = 'b' #put character in single quote, otherwise it is regarded as an unkwon variable
if i == l: # colon was missing
Additional remark: do not use l as variable name, since in some fonts it looks the same as I (big i)
0
How do you define? Im noob