+ 1
Why am I getting an error?
name = "DAPHINE" age = "30" if (name == "daphine" or name == "esther") and (age < 50 and age > 20): print ("developer")
3 Answers
+ 4
You are comparing a string with an int in age, remove the double quotes from age and after that it will be fine!
for more check out this command help(int)
Enjoy Learning đđđ»
+ 4
Also, your if statement is broken into two lines.
Make it as a single statement.
+ 1
Thanks guys.
Simba your solution worked