can you spot the mistake | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

can you spot the mistake

what's mistake in this code languege = input("select your languege \n\nхэлээ сонгоно уу? \n\n ") if languege.lower == 'english': print("you will use zet3,3 verison in english languege") print("my creator is erkhem, he is mongolian programmer") information = input("what do you want to know about") if information.lower == 'erkhem': print("he is my creator and he is from mongolian I'm his first program zet3,3") if information.lower == 'zet3,3': print("verison = 3,3 creator = erkhem") if information.lower == 'demon slayer': print("my creator's favorite anime") if languege.lower == 'монгол': print("та zet3,3-ыг монгол хэл дээр ашиглах болно") print("миний б?тээгч бол Монголийн програм х?гж??лэгч Б.Эрхэм") мэдээлэл = input("та ямар мэдээлэл авмаар байна.") if мэдээлэл.lower == 'zet3,3': print("би бол Монголийн програм х?гж??лэгч Б.Эрхэмийн анхны програм zet3,3") if мэдээлэл.lower == 'Б.Эрхэм': print("Монголийн Програм х?гж??лэгч") if мэдээлэл.lower == 'ч?тг?рийн ангууч': print("миний б?тээгчийн дуртай анимэ")

23rd Mar 2021, 2:23 AM
Erkhem
Erkhem - avatar
1 ответ
+ 4
You need to add the parenthesis () to your lower() function calls. You could also just add lower() to your input() instead and that way you won't need to repeat the lower() function calls so many times in your if statements.
23rd Mar 2021, 2:37 AM
ChaoticDawg
ChaoticDawg - avatar