0
Please someone send me rectified code
8 Antworten
+ 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.
+ 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.
+ 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.
+ 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.
+ 1
Jagdish Soren
Why this:
if s =="y":
continue
else:
break
Why not this:
if s != 'y':
break
+ 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.
+ 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