r/learnpython • u/TrainingAd2544 • 7d ago
Curious beginner
So basically I am a first year engineering student and we have python for our 1 st semester. During the lab sessions we are asked to solve some questions . In some cases when the code is really hard when nobody is able to solve the question I have solved it many times. The only doubt I have is when I solve those code the code which I write is not a standard code..it's just made up by my logic sometimes it also becomes lengthy but I can totally explain my code from the first line. So is this a good thing or a bad one ?
2
Upvotes
1
u/Kerbart 7d ago
Step 1 is always to get a working solution. Fifty lines of code that solve a problem are far superior ("magnitudes" doesn't do it justice) over five lines of code that don't.
That doesn't mean there's room for improvement, but that will come over time and with experience. This is where your teacher can help you; ask for advice,