+ 3
3rd Feb 2018, 4:19 AM
Lights_out
Lights_out - avatar
6 Answers
+ 3
You set several elif statements with nothing inside of them except another elif statement that is empty. Try changing it so that it does something if the condition is true. Also, you have many elif statement that are all doing the same purpose of checking to see if the input equals the string "add", and only 1 of them actually does something. When you're coding, about redundancy at all costs as it makes your code harder to read and may interfere with the code while it's running. Also, because Python doesn't use curly brackets for conditional statements, you must indent anything within the statement for it to be apart of the block.
3rd Feb 2018, 5:03 AM
Faisal
Faisal - avatar
+ 3
You... really need to check your if/else flow. You have an elif after an else, two ifs in a row that are the same check, a block of elifs that don't seem to do anything...
3rd Feb 2018, 5:06 AM
Jesse Bayliss
Jesse Bayliss - avatar
+ 3
my friend in my opinion try to restudy the sololearn python course and you will be able to correct your code good luck
3rd Feb 2018, 5:08 AM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
+ 2
I hope you try again you must rewrite the code šŸ˜Š
3rd Feb 2018, 5:02 AM
Abdurrahman Abulgasim
Abdurrahman Abulgasim - avatar
+ 2
thanks so much for your time and input
3rd Feb 2018, 5:11 AM
Lights_out
Lights_out - avatar
3rd Feb 2018, 5:38 AM
Jesse Bayliss
Jesse Bayliss - avatar