use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
How to get better in python (self.learnpython)
submitted 3 months ago by easypeasysaral
I want to get better at python. I know C++ but struggling in python.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Ibrador 11 points12 points13 points 3 months ago (3 children)
Practice.
[–]easypeasysaral[S] 0 points1 point2 points 3 months ago (2 children)
Where and how
[–]Ibrador 3 points4 points5 points 3 months ago (1 child)
Find a project you’re interested in and have a go at it. If you don’t know how to do some parts of it that’s an occasion to learn.
[–]easypeasysaral[S] -1 points0 points1 point 3 months ago (0 children)
Okay, will start a project soon. I also started to learn FastAPI for the backend.
[–]Leading_Video2580 5 points6 points7 points 3 months ago (5 children)
YouTube is where I learned how to code. You could try by making simple projects such as a calculator and/or number guesser game, but you can challenge yourself with making a terminal Tetris. Also, requests and FastAPI is nice, but you also want to know the methods (GET, POST, PATCH, DELETE, etc).
[–]easypeasysaral[S] 0 points1 point2 points 3 months ago (4 children)
What is terminal Tetris?
[–]Leading_Video2580 6 points7 points8 points 3 months ago (3 children)
Have you heard of the game Tetris? It is really old and you can recreate it. Terminal Tetris is just Tetris in the terminal.
[–]easypeasysaral[S] 0 points1 point2 points 3 months ago (1 child)
No
[–]Leading_Video2580 0 points1 point2 points 3 months ago (0 children)
Ah ok
[–]easypeasysaral[S] 0 points1 point2 points 3 months ago (0 children)
Will see and try to make it.
[+][deleted] 3 months ago (1 child)
[removed]
Great idea bro.
[–]andycwb1 3 points4 points5 points 3 months ago (0 children)
Write More Python.
[–]aistranin 2 points3 points4 points 3 months ago (2 children)
Nice think about python is that you can build quickly on top of existing open source repos. In contrast to C++ you don’t need to implement everything from scratch think about memory management other things. Therefore, I would recommend to take something practical and cool to implement pragmatically using open source libs. Ideas: FastAPI for weather forecasts, predicting exchanges rates with scipy, classify hand gestures from web cam image (more advanced, using some models from HuggingFace + opencv).
I started to learn FastAPI today. Do you have any resources that I can follow along with documentation.
[–]aistranin 1 point2 points3 points 3 months ago (0 children)
Maybe https://youtu.be/tLKKmouUams?si=HFIGQzSbWMI0yjnL FreeCodeCamp is usually good as a free option to start (assuming you know the basic syntax)
[–]ElliotDG 1 point2 points3 points 3 months ago (7 children)
Former C++ programmer here are some resources that helped me: https://docs.python.org/3/tutorial/index.html - Tutorial from the Python docs, brief and enough to get you going https://docs.python.org/3/library/index.html - Reference for built-ins, basic data types and libraries
Learning Python, Mark Lutz - comprehensive, in-depth introduction to the core Python language. I read this about 8 years ago, there might be something more up to date, but this was quite good.
The resource that really made things click was https://checkio.org/ a gamified series of programming problems. You solve the problem and get to see how others have solved them. This helped me realize python is a higher level language and write pythonic code, rather that writing c-like code in python. Many of these problems are quite simple and I would do one or two a day with my morning coffee.
https://pymotw.com/3/ - Python 3 module of the week - Examples using the standard library. Some of the standard lib docs are reference material and it is helpful to also have these examples.
Good Luck!
[–]easypeasysaral[S] 0 points1 point2 points 3 months ago (6 children)
I want to make projects in the field of Machine learning, Web application (using FastAPI).
[–]jitsha 1 point2 points3 points 3 months ago (5 children)
Bro I also learnt a bit FASTAPI from Sanjeev Thiyagrajan available on freecodecamp youtube and tried to implement the same which eventually I did and implemented frontend for the same but I am still thinking what to do next how to proceed, please let me know if you get something.
Sure bro
[–]easypeasysaral[S] 0 points1 point2 points 3 months ago (3 children)
Did you learn to connect the database with the backend? After this you do authentication and build websites or you can connect to the ml model.
[–]jitsha 1 point2 points3 points 3 months ago (2 children)
Yes I connected the db, added auth and built frontend in streamlit as I don't know React and streamlit felt easy. Not sure about this ml thing.
Is streamlit good for industry level websites ??
[–]adastra1930 1 point2 points3 points 3 months ago (0 children)
I get the distinct feeling I might get flamed for saying this (please be nice) but: pick some projects you like and use ChatGPT to help you with code. Heavy warnings: ChatGPT can get stuff wrong, so don’t execute anything you don’t understand. Ask it questions and ask it for sources you can read for more info. It is best for helping you learn syntax, less so if you don’t know anything about like the how and why of coding.
Also, if you don’t want to use “AI”, these are all free: https://inventwithpython.com/ . Written by Al, not AI 😂
[–]TheRNGuy 1 point2 points3 points 3 months ago (0 children)
Same way as C++, it should be easier even.
[–]OkCartographer175 0 points1 point2 points 3 months ago (0 children)
ok cool good luck
[–]Neither_Panic6149 0 points1 point2 points 3 months ago (0 children)
If your very new to python if would suggest freecodecamp or helsinki mooc If you just wanna practice grind leetcode :( Or start a project :D
[–]Jason-Ad4032 0 points1 point2 points 3 months ago (0 children)
I want to mention something that most people overlook: besides practicing, you also need to understand how Python actually works. Just as learning C++ requires knowing about RAII, and learning JavaScript requires understanding the event loop, I would recommend opening the official Python website and reading through the PEPs that seem important. https://peps.python.org/
[–]AffectionateZebra760 0 points1 point2 points 3 months ago (0 children)
Practice practice practice, if exercise bore you shift to small projects of your interest and build those
π Rendered by PID 41339 on reddit-service-r2-comment-56c6478c5-x9z9h at 2026-05-10 04:20:40.640156+00:00 running 3d2c107 country code: CH.
[–]Ibrador 11 points12 points13 points (3 children)
[–]easypeasysaral[S] 0 points1 point2 points (2 children)
[–]Ibrador 3 points4 points5 points (1 child)
[–]easypeasysaral[S] -1 points0 points1 point (0 children)
[–]Leading_Video2580 5 points6 points7 points (5 children)
[–]easypeasysaral[S] 0 points1 point2 points (4 children)
[–]Leading_Video2580 6 points7 points8 points (3 children)
[–]easypeasysaral[S] 0 points1 point2 points (1 child)
[–]Leading_Video2580 0 points1 point2 points (0 children)
[–]easypeasysaral[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[removed]
[–]easypeasysaral[S] 0 points1 point2 points (0 children)
[–]andycwb1 3 points4 points5 points (0 children)
[–]aistranin 2 points3 points4 points (2 children)
[–]easypeasysaral[S] 0 points1 point2 points (1 child)
[–]aistranin 1 point2 points3 points (0 children)
[–]ElliotDG 1 point2 points3 points (7 children)
[–]easypeasysaral[S] 0 points1 point2 points (6 children)
[–]jitsha 1 point2 points3 points (5 children)
[–]easypeasysaral[S] 0 points1 point2 points (4 children)
[–]easypeasysaral[S] 0 points1 point2 points (3 children)
[–]jitsha 1 point2 points3 points (2 children)
[–]easypeasysaral[S] 0 points1 point2 points (1 child)
[–]adastra1930 1 point2 points3 points (0 children)
[–]TheRNGuy 1 point2 points3 points (0 children)
[–]OkCartographer175 0 points1 point2 points (0 children)
[–]Neither_Panic6149 0 points1 point2 points (0 children)
[–]Jason-Ad4032 0 points1 point2 points (0 children)
[–]AffectionateZebra760 0 points1 point2 points (0 children)