Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 1
Please what could be wrong with this
Needs debugging https://code.sololearn.com/cTYf44N2mwsa/?ref=app https://code.sololearn.com/cLkvm1wTTV35/?ref=app https://code.sololearn.com/cTYf44N2mwsa/?ref=app https://code.sololearn.com/cLkvm1wTTV35/?ref=app
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
+ 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
+ 5
In Greet for second case try elif function instead of if
+ 5
Why don't you try else:
+ 3
TheWhĀ”teCat Bro, I always use "=" for equality comparisons. If the two variables weren't equal before they surely are now. Saves hassle.
+ 2
van GerizĆ¼ed btw, don't take my reply seriously, just a programmer joke š
+ 2
van GerizĆ¼ed š¤£
+ 2
Nweke just remove the else clause and print statement => line 8 and 9.
+ 2
TheWhĀ”teCat yeah, I chatted to him last night and suggested that š
+ 2
Ok Peter David Carter šŗš
+ 1
van GerizĆ¼ed you do the @ symbol and then it lets you select their name (usually)
+ 1
van GerizĆ¼ed š¤
+ 1
Done, but there's still a problem, here's the modified code
https://code.sololearn.com/cLkvm1wTTV35/?ref=app
0
Thank you very much for your help I appreciate
0
No problems at all
0
How d'you mention someone in a comment?
0
Peter David Carter thanks ;-)
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
0
Pradip Thoyal 'elif' won't work
0
Dunno if this helps
https://code.sololearn.com/cydlmrA5Bht1/?ref=app