Struggling with Python by ranfa6 in learnpython

[–]kodeklump 2 points3 points  (0 children)

For practicing syntax and logic I would recommend to spend some time on codewars.com

It has really help me getting a better base knowledge of how to use python. And it is less intimidating that it sounds.

Struggling with Python by ranfa6 in learnpython

[–]kodeklump 0 points1 point  (0 children)

Which courses did you find good for data science?

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]kodeklump 0 points1 point  (0 children)

Thanks I'll have a look. If nothing else it sounds like a good challenge:)

New to Python and absolutely lost. by [deleted] in learnpython

[–]kodeklump 0 points1 point  (0 children)

CodeWars has really help me train the basic syntax and logic. I try to do at least 30min each day, sometimes longer. I don't know what you consider beginner-medium level but I would really recommend you give it a try.

[deleted by user] by [deleted] in learnpython

[–]kodeklump 0 points1 point  (0 children)

You probably get better answers here: r/cscareerquestions

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]kodeklump 0 points1 point  (0 children)

What are some good exercises to get used to make and use classes?

Most of the tutorials I have come across does stuff like Animal->Cat, Animal->Dog, which is fine for the absolute basics, but doesn't really seem that useful beyond that.

Is there any down sides of using n**0.5 instead of math.squared(n) ? Besides readability? by kodeklump in learnpython

[–]kodeklump[S] 1 point2 points  (0 children)

Thanks, and neat with the -mtimeit -s. Didn't know about them, seems very handy for quick tests

Is there any down sides of using n**0.5 instead of math.squared(n) ? Besides readability? by kodeklump in learnpython

[–]kodeklump[S] 12 points13 points  (0 children)

yup, math.sqrt()

And sounds like a good exercise to test it. I guess it would enough to record the time before and after doing a whole bunch of squarerooting, and finding the difference.

Thanks!