Please what could be wrong with this | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
25 Respostas
+ 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
+ 2
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
+ 1
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