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

Show parent comments

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)