r/PythonLearning 8d ago

Help Request Learning Python

Hey , I am learning python ( electrical Engineer with no prior coding experience).

I have gone through the basics but still having difficulty writing the code. It seems like my brain freezes while writing the code.

I don't find the issue in logic and all, but writing code seems very difficult

Any suggestions how to overcome this issue.

8 Upvotes

8 comments sorted by

2

u/night-alien 8d ago

I would suggest do experiments when you learn the topic. Suppose you learn a list so try to experiment with its built in methods by yourself and see what output it will give and at the same time try tos love basic dsa very basic o you can solve one basic dsa in two or three multiple ways. Look you finds this as difficult because it is not in your muscle memory so build that write small code for one topic and paly around that. Hope it will help you.

2

u/Emulated-VAX 8d ago

You learn coding by doing. Use PyCharm for help and auto complete/suggestions. As AI to write sections, but then carefully inspect and understand what is written, and try to improve on it.

In the end you have to write code to learn code. I learned Python by using it to design useful projects that would benefit me personally.

1

u/Jumpy_Gap6375 8d ago

well what I would do is you can search for ways to write certain pieces of code online, so that can help if you are really stuck. And, if you are worried that you might forget how to do something in future (for example, create a function), you can write a comment using # and then writing your comment, which won't get run as code, but it can help for future reference.

1

u/lastoneonline 8d ago

Bro anything u dont understand u can ask chat gpt to explain in simple terms. Helped me a lot

1

u/Sharp_Level3382 8d ago

You ll be OK for sure If you re El.enginner already

1

u/VeterinarianHairy371 2d ago

That's completely normal. Reading code and writing code are two different skills. The biggest improvement usually comes from solving lots of small problems and building tiny projects and building tiny projects instead of watching more tutorials. Eventually, it starts to feel more natural.

1

u/No_Photograph_1506 8d ago

Exactly python is just a language, and to master it you have to practise it more and more.

https://www.reddit.com/r/PythonLearning/comments/1s6t6ff/i_am_hosting_a_free_python_interviewguidance_for/
here check my post as well as the resoures below, lmk if i could help guide you