25 ответов
+ 4
For comparison you should use "==" instead of "=". After each if or elif clauses put ":". Look at the corrected codes. Hope it helps you 😺 https://code.sololearn.com/cx3G0I1jzeml/?ref=app https://code.sololearn.com/c35Qh5EfpD5H/?ref=app
1st Oct 2019, 9:55 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 11
Nweke the user might enter Male or MALE or male you should handle that. try use lower() method to convert so the result printed irrespective of case
2nd Oct 2019, 2:18 PM
BlackRose Mike
BlackRose Mike - avatar
+ 5
In Greet for second case try elif function instead of if
2nd Oct 2019, 5:57 PM
Pradip Thoyal
Pradip Thoyal - avatar
+ 5
Why don't you try else:
2nd Oct 2019, 6:08 PM
Pradip Thoyal
Pradip Thoyal - avatar
+ 3
TheWh¡teCat Bro, I always use "=" for equality comparisons. If the two variables weren't equal before they surely are now. Saves hassle.
1st Oct 2019, 10:27 PM
Peter David Carter
Peter David Carter - avatar
+ 2
van Gerizüed btw, don't take my reply seriously, just a programmer joke 😊
1st Oct 2019, 10:34 PM
Peter David Carter
Peter David Carter - avatar
1st Oct 2019, 10:39 PM
Peter David Carter
Peter David Carter - avatar
+ 2
Nweke just remove the else clause and print statement => line 8 and 9.
2nd Oct 2019, 7:09 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 2
TheWh¡teCat yeah, I chatted to him last night and suggested that 🙂
2nd Oct 2019, 7:10 AM
Peter David Carter
Peter David Carter - avatar
+ 2
Ok Peter David Carter 😺👍
2nd Oct 2019, 7:11 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
van Gerizüed you do the @ symbol and then it lets you select their name (usually)
1st Oct 2019, 10:42 PM
Peter David Carter
Peter David Carter - avatar
1st Oct 2019, 10:45 PM
Peter David Carter
Peter David Carter - avatar
+ 1
Done, but there's still a problem, here's the modified code https://code.sololearn.com/cLkvm1wTTV35/?ref=app
2nd Oct 2019, 10:16 AM
Nweke👑
Nweke👑 - avatar
0
Thank you very much for your help I appreciate
1st Oct 2019, 10:33 PM
Nweke👑
Nweke👑 - avatar
0
No problems at all
1st Oct 2019, 10:36 PM
Nweke👑
Nweke👑 - avatar
0
How d'you mention someone in a comment?
1st Oct 2019, 10:40 PM
Nweke👑
Nweke👑 - avatar
0
1st Oct 2019, 10:43 PM
Nweke👑
Nweke👑 - avatar
0
Peter David Carter, TheWh¡teCat could you help, I want this code to display Good day Ma/Sir only https://code.sololearn.com/cLkvm1wTTV35/?ref=app
1st Oct 2019, 10:45 PM
Nweke👑
Nweke👑 - avatar
0
Pradip Thoyal 'elif' won't work
2nd Oct 2019, 6:00 PM
Nweke👑
Nweke👑 - avatar
2nd Oct 2019, 11:30 PM
Daniel Halls
Daniel Halls - avatar