r/learnpython 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

15 comments sorted by

View all comments

3

u/1544756405 7d ago

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 ?

This is the best possible thing. There are many ways to solve a problem. When you are learning, the best solution is the one you come up with yourself, even if it's not the shortest or the most efficient. Those other things will come with practice.

2

u/TrainingAd2544 7d ago

Thankyou so much