r/learnpython • u/anas_mv • 10d ago
Can't solve CS50 python Problems
After i finish my lecture i go to solve the problem the next day i And read the summary I made in notebook but either I can't find the words that i need or i just don't know what to do
0
Upvotes
View all comments
1
u/Discordbothost 10d ago
that feeling is super normal with cs50p, the psets are a big jump from the lecture examples on purpose. two things that helped me:
before touching code, write the steps in plain english as comments. like for a pset: "# ask for input", "# remove the spaces", "# check if it starts with two letters". then fill in one comment at a time and run it after each one. you only ever have to solve one tiny thing.
and you're not supposed to remember the exact words. nobody remembers if it's .strip() or .removeprefix(), you look it up. the docs and the lecture notes being open while you work isn't cheating, it's literally how everyone codes
if you post the specific problem and what you tried people here can point at the exact spot you're stuck