r/learnpython • • Mar 08 '22

Python project ideas for upper beginner/intermediate

Does anyone have some projects ideas to recommend or some kind of sites/resource to get inspired?

341 Upvotes

90 comments sorted by

View all comments

15

u/WhipsAndMarkovChains Data Scientist Mar 08 '22 edited Mar 08 '22

It depends on your areas of interest. I like solving math/programming puzzles. For example, the Riddler Classic problem here: https://fivethirtyeight.com/features/can-you-solve-the-vexing-vexillology/

It's not difficult to brute force, but using the proper data structures and solving it efficiency takes some work/knowledge. That was my first time using a frozenset.

There are lots of problems that are easy to solve with code but tougher to solve efficiently.

Edit: Advent of Code is a good way to practice/force yourself to learn some advanced concepts.

1

u/yogding Mar 08 '22

u/WhipsAndMarkovChains BRUH! Advert of code is so (no words), in the first day- do we need to count "How many measurements are larger than the previous measurement?
from this long file, => To begin, get your puzzle input."?

3

u/WhipsAndMarkovChains Data Scientist Mar 08 '22

Yeah. They start out super easy and get wild later on.

1

u/yogding Mar 08 '22

did you counted whole long file?

2

u/WhipsAndMarkovChains Data Scientist Mar 08 '22

I just went back to look at my code. The first step of any problem is to read in the input file. Here's my code for doing that one day 1:

with open('input.txt') as f:
    depths = tuple(int(line.strip()) for line in f)