r/learnpython • • Jun 18 '20

Python projects for beginners

Hi! I just learned basic python syntax (watched a 4 hour long python tutorial playlist while also doing it myself), what would be some good beginner projects/ programs that i’d be able to make, and second of all, what can i learn next to become better at python?

449 Upvotes

108 comments sorted by

View all comments

148

u/[deleted] Jun 18 '20 edited Jun 18 '20

There's no obvious "next thing to do". There is just "Do something; learn from doing it; repeat"

If you're missing inspiration for things to do, try one of these:

  • Accept a coordinate, and use the openstreetmap overpass API to create a friendly name like "7 miles north east of Wenatche, WA"

  • Make a program to find the IUPAC systematic name of an organic molecule.

  • Visualize the n-body problem in a GUI.

  • Create a program to accept a date, and scrape wikipedia and other sources for events of that date, and present them in a way suitable to a "This day in history" page.

None of them are easy, but neither are they impossible. You will be out of the comfort zone as a beginner by doing any of them, but "No pain, no gain" also applies here.

31

u/[deleted] Jun 18 '20

Dont take offense but don't you think that those projects are a bit hard for a new beginner?

12

u/HDSQ Jun 19 '20

I've been programming for 3 years and I think I'd struggle with them quite a bit. I was thinking more along the lines of something to solve simultaneous equations or something.

→ More replies (3)

3

u/EggChen_vs_Lopan Jun 18 '20

I like that Wikipedia idea. Thanks for that

7

u/JarnePl Jun 18 '20

Thank you! Will try this!

4

u/8roll Jun 19 '20

Make a simple game instead. Learn pygame. Challenging projects will help you, but very difficult projects will not.

4

u/physicsking Jun 18 '20

Great ideas

2

u/erico252 Jun 18 '20

Visualizing the n-body problem in a GUI sounds like a great idea. Does anyone have a link to point me in the direction of working with GUIs?

2

u/2ndzero Jun 18 '20

Any good project recommendations that might impress an employer?

5

u/[deleted] Jun 18 '20

I'm not directly involved in hiring, so this is at best an educated guess.

  • Write readable code. Coding challenge style of cramming everything on a single line has no value in the real world.

  • Make mistakes and fix them. Own them. We all make mistakes. The experience from dealing with them is a valuable skill.

→ More replies (1)

3

u/[deleted] Jun 18 '20

Can you please tell some good books that i can read to get more into intermediate and advanced python? I like reading and learning from books :) And i will also actually code what they gave in the books while reading it.

5

u/[deleted] Jun 18 '20

I'm sorry, but no. I've learned general programming in a university freshman course 30 years ago. I just picked up Python along the way.

3

u/[deleted] Jun 18 '20

Oh ok np

5

u/maxmilner Jun 19 '20

‘Python Crash Course 2nd edition’, and ‘Automate the Boring Stuff’ are two great books to work through as they teach you the fundamentals and then some, plus they both give you challengers to use what you just learned. Bonus, they’re both free PDFs online just google them!

3

u/beje_ro Jun 18 '20

Advanced generally means specialization... In what direction would youblike to go?

4

u/[deleted] Jun 18 '20

I would like to go into neural networks machine learning and ai along with some other stuff like games but mostly neural networks and machine learning and ai

7

u/ivosaurus Jun 18 '20

https://link.springer.com/book/10.1007/978-3-319-73004-2

Free book, teaching using the freely installable libraries numpy & friends.

1

u/[deleted] Jun 18 '20

Thanks

4

u/surferbb Jun 18 '20

I’m literally just starting coding (as of two days ago) but want to go to ML eventually - it seems that you also need a pretty firm grasp of advanced math (something I have no experience with) so some linear algebra etc supposedly is helpful. Check out the ML Reddit’s they seem to have good advice

1

u/[deleted] Jun 18 '20

Cool thansk

4

u/BeastCoder Jun 19 '20 edited Jun 19 '20

A few things that I found especially useful (in the order you should watch them) are:

  1. 3blue1brown’s video series about neural networks and the math behind them

  2. The Coding Train’s video series about actual implementation. This series also has dedicated videos for upcoming math topics which is also great!

These video series are both really helpful. For the second one, he uses Processing which is a super simple graphics framework for Java. You can follow along with Processing.py; the Python implementation.

There is another video series from Sentdex about neural networks which seems pretty good, but, I haven’t personally watched it. Here is the link.

From there, you can probably find some books for what’s next, but these are great introductory videos. Hope this helps!

Edit: These videos or specifically for making neural networks from scratch. You’re not going to find any of these using a library like TensorFlow which handles most of the math for you.

→ More replies (1)

2

u/[deleted] Jun 18 '20 edited Jun 18 '20

For more pythonic code you can try Fluent Python. For learning data science you'll need too brush up on differential and integral calculus, linear algebra, statistics. There are some decent books like Python for Data Science and Data Science from Scratch that are a good starting point.

→ More replies (2)

2

u/skellious Jun 18 '20

might want to keep your eye on this project (the book is being written at the moment but you can request access to the google docs draft) - https://nnfs.io/

https://www.youtube.com/watch?v=Wo5dMEP_BbI

https://pythonprogramming.net/

1

u/[deleted] Jun 18 '20

Thank you for specifying "these are not easy". Too often beginner forums make intermediate or advanced difficulty projects seems like a beginner should be able to do them as a next step, and this can be very discouraging. This simple disclaimer would help a lot of would be programmers power through

1

u/sje46 Jun 19 '20

Visualize the n-body problem in a GUI.

The Trisolarans will thank you!