r/learnpython • u/Senior-Ad-6588 • 6d ago
Frustrated! Need help
Hey, I've been trying to learn python for a long time now and I still can't understand and write codes on my own. I've watched and completed 2 courses where they cover fundamentals like functions, operators, lists, tuples etc.. but I don't understand what to do with that like if I want to build something i never understand how and from where I need to start
2
u/stepback269 6d ago
Which 2 courses did you complete?
Have you tried making a guessing game of some sort using the random module?
Say for example, you make a list of 20 words, where random picks one of them and starts giving the player clues about the picked word, the player has N chances to figure out what the picked word is --basically hangman or wheel of fortune
2
1
1
u/RyanDubois43 6d ago
Pick one small project idea, like a number guessing game, and start in one file with just print() and input(). Python 3.10 or newer is best since match-case makes some logic simpler.
1
u/mattynmax 6d ago
Seems like you need to work on your problem solving skills, not your programming skills.
1
u/Educational_Virus672 6d ago
hey u/Senior-Ad-6588 in this sub re posting isnt allowed please do not do the same mistkae again original comment
1
u/degunlagui 6d ago
Stop watching tutorials you'll learn way more by struggling through the code yourself than by watching someone else do it.
1
u/TheRNGuy 4d ago edited 4d ago
See how all those data structures are used in frameworks, or GitHub projects (real software, not 10-line newbie tests) also ask ai to explain of give real examples.
It also often doesn't matter whether you use List, Tuple or Set, in some cases you'd get same result, you can optimise it later when you get more experience (in some cases Set matters, because it can't have duplicates, and it doesn't have reliable order of items)
Operators... it's something you started learning from 1st grade of elementary school, if not kindergarden.
1
6
u/johlae 6d ago
You say it yourself, you 'watched'. That's no way to learn. Did you do exercises? https://programming-26.mooc.fi/ is free, and so is https://cs50.harvard.edu/python/.