0

Please someone send me rectified code

https://code.sololearn.com/c933R0n9tCg8/?ref=app

7th Dec 2021, 7:15 AM
Jagdish Soren
7 Answers
+ 3
Simba with some luck someone will help him I also need practice in reading other people's code ;) Check it: https://code.sololearn.com/cxKiONI9DTSO I'm not sure if Sololearn has the ability to enter data while the programme is running. As far as I understand there is only an option to enter all the data at the beginning. Unfortunately, SoloLearn's code playground isn't interactive. But everything seems to work in the desktop console.
7th Dec 2021, 8:27 AM
Alexey Kopyshev
Alexey Kopyshev - avatar
+ 6
We don't think someone will help you to rectify a 300+ lines code. All you need to learn about how indentation works in python.
7th Dec 2021, 7:49 AM
Simba
Simba - avatar
+ 2
I don't really understand the problem... Why couldn't you indent it yourself and now let others do the annoying part? If you struggle with Python, I recommend you Python for Beginners course and Python Core course in sololearn to get familiar with the basic syntax.
7th Dec 2021, 10:58 AM
Lisa
Lisa - avatar
+ 2
Dumping a huge code and asking for someone to fix doesn't attract much will to help, and doesn't help you to learn. Instead, I recommend making specific questions about specific difficulties you have. As you understand the answers and fix the code, you'll definitely learn a lot more. That said, a couple things to fix your code: Plan the logic, the data structure, the classes, functions, etc., *before* writing. The effort compensates a lot when code grows. As Martin Taylor said, break your code in smaller pieces - classes, funcions, and so on - with well delimited purposes. It all becomes way easier to read, improve and fix. Programming is much more about logic and organization than writing.
9th Dec 2021, 2:59 AM
Emerson Prado
Emerson Prado - avatar
+ 1
Jagdish Soren Why this: if s =="y": continue else: break Why not this: if s != 'y': break
7th Dec 2021, 5:02 PM
A͢J
A͢J - avatar
+ 1
Heroic job Alexey Kopyshev. You cannot really test this code in Sololearn. No interactive terminal here. Copy-pasted it to Pydroid3. It seems to be working better but still some tabular data display issue on the lower portion with the data not lining up with the header. And yes, the code is very messy and needs a lot of refinement.
8th Dec 2021, 5:05 AM
Bob_Li
Bob_Li - avatar
+ 1
Thanks Alexey Kopyshev for rectifying my code I was not having enough time to rectify the code because I am preparing for my exam you helped me a lot for completing my school project
20th Dec 2021, 1:29 PM
Jagdish Soren