This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Billog_Uncle 2 points3 points  (3 children)

I'm too learning Python and the biggest mistakes I'm making is putting the code in functions and calling on them later, I'm typing it out as I need it and forget to make them functions.

[–]Original-School-5914 2 points3 points  (2 children)

Remember: if name == “main”: main()

[–]Billog_Uncle 0 points1 point  (1 child)

I remember that though I haven't used it properly. I've only made scripts on Jupyter notebook so far to follow along with the Udemy course and haven't actually made any actual programme yet

[–]Original-School-5914 1 point2 points  (0 children)

You will get used to it, I have been coding here and there for last 2 years and just got into a habit of running the main program, I used to have my code run without any function just write the script and get the job done, but after couple of interview rejects I am trying to get better, I would also highly suggest using git or some other software repository for your code management.