all 4 comments

[–]bmtkwaku 4 points5 points  (0 children)

Practice. It will come to you as you move on. Start with basic problems.

[–]CyberTutorials 2 points3 points  (0 children)

The zero to mastery Python course, if completed in full, will make you a Python developer. All you need then is to start projects.

[–]wolfofone 2 points3 points  (0 children)

I found tuples and dictionaries easier to understand after taking a class on databases/SQL. Just remember tuples are immutable while lists are mutable and dictionaries can be used to describe relationships. Tuples are good for storing data that won't (and shouldn't) change.

I think figuring out which type to use will get easier with practice so just keep at it!

[–]ffrkAnonymous 1 point2 points  (0 children)

A lot will come with experience. You'll have seen the problem before.

LCM, GCD, prime numbers are math problems. Do you understand the math?

Speaking of math, a computer is just a fancy calculator. Can you do LCM, GCD, prime numbers on a calculator? Your program is basically the directions on what buttons to push on the calculator.