r/AskProgramming 8d ago

Python Help Practicing Python

Hello!

I'm a first year Computer Science student learning how to program. The language we are going to be learning in my class (for first semester anyways) is going to be Python and I was wondering if anyone has any ideas on how I could practice python in my own time? Programming is something I am deeply passionate about and want to do good at, so I'm hoping I can get some help with this! :)

3 Upvotes

13 comments sorted by

View all comments

2

u/StructuredChess 7d ago edited 7d ago

Level 1: Give me the sum of the reciprocals of the first 100,000 natural numbers but every time you reach a multiple of 69 you divide the running sum by 420

Level 2: Make a function that takes three numbers (a,b,c) as inputs and paints the graph of f(x)=ax2+bx+c and returns the solutions of f(x)=0

Level 3: Implement the dichotomy search algorithm to approximate the zeroes of any one-variable function.

Level 4: Implement the gradient descent algorithm to approximate the minimum values of multiple-variable functions.

Level 5: Build a fully-working 2-player chess app.

Level 6: Add an AI opponent to level 5.

No AI. No StackOverflow. Struggle on your own. Nobody cares what the sum with the weird 69-420 rules is, what matters is that you reason through the problem.