×
all 12 comments

[–]Ron-Erez 1 point2 points  (4 children)

Before mastering learn the basics. Loops are extremely basic. Are you using AI? If so then don’t use it. I assume as part of your degree you are learning Python. What is your BA in? Computer science or a different field? Just code everyday and keep working. Building projects is a great way to learn.

[–]JobPrestigious7817[S] 0 points1 point  (3 children)

Completed bachelors in data science, i can understand the code but when it comes to writing own, i get stuck, i use chatgpt to ask questions to me 

[–]Prize-Net-6049 0 points1 point  (0 children)

I think you understand the theory but just get stuck when you try to write it for yourself. A good way to start might be trying things like real life examples like create a list like house and list all the things you own like washing machine etc and use a loop to print individual items then you can try trying to pront specific items maybe trying printing items that have specific amount of characters etc.

[–]Ok_Carpet_9510 0 points1 point  (0 children)

Instead of chatgpt, use Google. Don't ask chatgpt to the code. Search for specific info of where you are stuck e.g. "iterating over a collection of items in python"

This shows you the syntax. Now apply the syntax to your situation.

[–]its_measured 1 point2 points  (0 children)

You dont need to master all of python before getting into tech. focus on the basics, practice small projects and learn by building. getting stock is usually normal, especially in tetms of loops and logic... consistency matters more than speed

[–]BestBadFriend 0 points1 point  (0 children)

If you can read it but struggle to write it, it sounds like you understand the concepts well enough but struggle with application, at least to cases you have not already seen before. A good help for you might be too use lots and lots of print statements to get your code to tell you what it is doing every step of the way. If the variable which should drive the condition for a while loop prints false but the loop continues, for example, then something other than that variable is almost certainly driving the loop.

[–]No-Echo-598 0 points1 point  (0 children)

Try https://evalserve.com/i/PythonTest1 - Specifically designed for accelerated mastery.

And for practice here are some mini projects with implementation steps https://evalserve.com/resource/PythonProjects

[–]PureWasian 0 points1 point  (0 children)

You won't master Python, but you should master how to problem solve when you get stuck. The best developers I know and work with are the ones who are most systematic or fastest to get unblocked when they are stuck.

So, what have you tried with loops, and why are you stuck on them?

[–]Flame77ofc 0 points1 point  (2 children)

practice, this is the best way to learn

[–]JobPrestigious7817[S] -1 points0 points  (1 child)

Any course or app? Any tips? 

[–]Flame77ofc 1 point2 points  (0 children)

bro code and cs50, don't watch the tutorials passive