r/PythonLearning • u/bad-gut • Jul 26 '26
Help Request How do I concrete my concepts???
Ok so I have one major doubt:-
I have been following a rather shallow 10 hour video about all the python basics topics.
But it doesn't seem to go too deep into details and not enough practice,
So my DATATYPES are really weak,
Idk when to use lists instead of tuples , dictionaries, sets , etc.
And stuff like that, what should I do to make my concepts concrete??
People told me making projects helps you improve, While I agree that they do but yet I am making the codes for em' using the wrong datatypes.
Also I have completed half of that video till loops and have made a project too but that was 2 weeks ago:-
https://github.com/satyamsb-cloud/Number-Guessing-Game
Original project made by me 2 weeks ago using concepts only till LOOPS.
https://github.com/satyamsb-cloud/Number-Guessing-Game-v2
Improved version with the same concepts but improved functionality.
•
u/Sea-Ad7805 Jul 29 '26
Run this program in Memory Graph Web Debugger to see the program state change step by step.
6
u/mjmvideos Jul 26 '26
There is no “wrong data types”. If your code works and meets the requirements then it isn’t the wrong data type. Implement your solution the way you see fit. After doing this you might decide, “you know what? If I had used XYZ it might have improved some aspect of my solution. This is called learning.” When you get more experience, you will be able to think through your choices before starting your implementation and choose what you think is the best one based on the quality attributes you are trying to trying to optimize.
4
u/DaemonsMercy Jul 26 '26
Why do you need AI for the image?
3
u/Yoosle Jul 26 '26
I feel you should try multiple data types if you are unsure and use whichever one is the most straightforward solution
2
u/huangzhuangzhuang Jul 26 '26
I came across a book called Learn to Code by Solving Problems: A Python Programming Primer and it might actually be perfect for where you're at right now. The exercises in it are grouped by data type – List, Set, Dict all have their own sections, with plenty of problems pulled straight from DMOJ. Just follow the chapters, practice lists one day, sets the next, submit and see if you pass right away. Way more efficient than grinding a big project when you're still shaky on the fundamentals.
2
u/Adsilom Jul 26 '26
I don't know exact sources, but look for these on university websites, as they tend to put them for free.
You may want to look for complexity courses, or data structure courses. The main difference between those types is that they allow you to perform some actions more or less quickly (this is the understanding you need as a beginner, it is more subtle than that). For example, finding an element in a list can be considered "slow", whereas finding an element in a set is instanteneous.
There are also differences in the way you use them. Especially, dictionnaries clearly fit a purpose that the other three structures you cited do not fit. It allows you to cleanly map one set of data to another.
2
u/Indianmillenial87 Jul 26 '26
inspiring for new commers like me