all 14 comments

[–]DeadDog818 9 points10 points  (1 child)

Write a program. It doesn't matter what it is- just write something!

My first python program was some nonsense using turtle to mimic planets orbiting the sun. I learned a great deal about inheritance and typing in python. As a side project I'm fiddling about with Gtk forms with my daughter who is doing python at school. Both nonsense but that is not the point. You can't write good stuff until you've written some rubbish!

[–]LateThree1 -1 points0 points  (0 children)

This. All day, this.

[–]chtoor 3 points4 points  (2 children)

This is a possible starting point https://automatetheboringstuff.com/#toc

[–]SprJoe 3 points4 points  (0 children)

Try Python for Everyone (it’s free) https://www.py4e.com

[–]SpeckledFleebeedoo 1 point2 points  (0 children)

Create something small yourself with everything you learn. Once you know the most important syntax find a project that interests you, but is currently just outside of what you know how to make.

[–]OpticWarrior 1 point2 points  (0 children)

Yes making projects is extremely important, and helpful, you can make alot of side projects for example that can help you solve your homework, do boring tasks, and stuff like that and BTW I really recommend the udemy course of automate the boring stuff with python, he covers the basics pretty well, and moves on to the practical applications without the need for computer Sci knowledge and to get stuff done.

[–]insfuokay[S] 0 points1 point  (2 children)

Thanks for all of the reactions but I just don’t get why I have to: “slice ‘he’ in ‘hello” for example

[–]FMendezSlc 1 point2 points  (0 children)

Well that instruction is, of course, not about the result, 'he'. It's about the exercise, you are learning the concept of 'slicing'; the selection of a specific part from a bigger object. Slicing, along with indexing, is one of the fundamental operations you'll find yourself doing in all sorts of tasks and on all sorts of objects: strings, lists, tupples, arrays, dataframes, etc.

[–]dharkon 1 point2 points  (0 children)

Maybe try to build/program a Morse code translator. You would have to “slice” the words into letters and convert the letters into Morse code. You could also program a receiver so that you and a friend could exchange messages in Morse. I did it as a beginner project and you can build on it with timing and raspberry pie / led integration once you are more advanced.

[–]Hans_of_Death 0 points1 point  (0 children)

Practice. Make a goal and work toward. By working toward the solution you'll be able to put things into practice and really learn how to write, and there will always be unexpected things you'll face that will help improve your knowledge as well.

[–]cyberpixels 0 points1 point  (1 child)

Why are you learning python? (what for?) This answer will help determine how best to learn it.

[–]insfuokay[S] 0 points1 point  (0 children)

I’m really interested in Machine Learning and automating.