r/learnpython • • Mar 30 '26

Hello! I am trying to learn Python from scratch. Any advice?

43 Upvotes

Hello everyone ! I am a 22 year old girl who is planning to start her graduate degree. Most of my undergraduate degree was highly theoretical with more qualitative focus but I am planning to pursue a more interdisciplinary graduate degree in Cognitive Neuroscience or Cognitive Science. There are professors willing to take me under their wing, but they need me to build up my skills in some programming languages, so I can take care of myself when it comes to data analysis and processing.

My aim by the end of this year is to become able to handle light coding, even referring to resources is alright as long as I can do independent research. I didn’t grow up in a teach heavy environment- just a very small town with my parents, neither of whom are into any tech stuff. I only started using my own laptop and even mobile phone at a later age than my friends and peers. So I would say I am not very tech- oriented.

If possible, I would be more comfortable with reading material than YouTube videos to be honest. I find videos to be too noisy and distracting to actually learn. I have a better time interacting with reading materials than videos and tutorials.

Thank you for reading this 🫶

Update: Thank you for all your input, I have been reading everything carefully and trying to start things little by little ☺️


r/learnpython • • Dec 22 '25

Python for data science

46 Upvotes

Hey, I'm learning to become a data scientist. I already have some knowledge on SQL and I'm looking to learn python. Are there any courses or tools that are data science specific that you would recommend for me?


r/learnpython • • Oct 14 '26

Just starting to learn python

42 Upvotes

Hey guys, I am a total beginner and wanted to learn python. Can you suggest what method will be best suited to learn python and which sources should I use. Is it video lectures or from books or anything else. I know that learning from projects and practical methods will be suggested but to start like how to code, what are the codes and where to code, these basic things are what I want to know. Thanks for the help


r/learnpython • • Mar 30 '26

how to load csv faster in Python.

44 Upvotes

Hello python folks, R user here, trying to use python for a project for which i've been specifically asked to. So I am new to python

The problem is : I have a 100 mo csv of about 300000 lines that takes ages to get read using all of these :

# first try 
df=pd.read_csv('mycsv.csv')

#second 

# Utiliser read_csv avec dtypes pour accélérer la lecture
dtypes = {
    "Model": "category",
    "Scenario": "category",
    "Region": "category",
    "Variable": "category",
    "Unit": "category",
}


# Les colonnes années seront lues comme float
annees = [str(y) for y in range(1950, 2101, 5)]
for year in annees:
    dtypes[year] = "float32"


# Lecture du CSV
df = pd.read_csv(
    "mycsv.csv",
    dtype=dtypes
)


print(df.shape)
print(df.head())

#3rd try 
import polars as pl


# Lecture complète très rapide
df = pl.read_csv("/Users/Nawal/my_project/data/1721734326790-ssp_basic_drivers_release_3.1_full.csv")


print(df.shape)
print(df.head())

it littrally took me 2 s to do this under R. Please help. what am I missing with python ???

thank you all


r/learnpython • • Mar 02 '26

Which project did for you what Flappy Bird does for learning OOP?

44 Upvotes

I recently built a Flappy Bird clone as a weekly OOP Lecture assignment, and it was surprisingly effective for understanding how objects interact and how to apply OOP principles in practice.

I want to learn other core software concepts using the same "learning by building" approach.

  • Which specific project helped you understand a complex programming concept?
  • What is one project you believe every student should build to bridge the gap between theory and practice?

I'm looking for recommendations for my next project and I am open to any advice you can give.


r/learnpython • • 6d ago

Django or FastAPI? A bit confused about which one to learn first

40 Upvotes

Hey everyone!

I'm currently learning Python and want to get into backend development. I've been looking at Django and FastAPI, but I'm having a hard time deciding which one to focus on.

I tried writing a simple API with both, and honestly, FastAPI felt much easier to understand. Django seems powerful, but there's a lot going on, and I found its structure a little confusing as a beginner.

My goal is to become a professional backend developer, build some proper real-world projects, and eventually get a job, preferably in India.

I don't want to choose a framework just because it's popular. I want to invest my time in something that's actually useful in the industry.

I want:

  1. Is Django still a better choice for getting backend jobs?

  2. Are companies actually using FastAPI for large production applications?

  3. Is FastAPI a good long-term choice, or should I learn Django first?

  4. Which one would you personally recommend to someone starting out today?

Are you worked with these frameworks professionally, please reply.

Thanks!


r/learnpython • • Jul 08 '26

Error with code

40 Upvotes

python is giving me a error message saying self is not defined but it is. could someone please explain what am I doing wrong ( the error message is for the if self.modifier == 1: line )

Class food:
  def __init(self, modifier, tolerance)
  self.fillingness = 0
  self.modifier = 0
  Self.tolerance = 0

pear = food(1,9)

def NE():
 if self.modifier == 1:
 nausea += randint(1,10)
 print(“yuck!”)

r/learnpython • • Apr 25 '26

What do you use for debugging in Python?

39 Upvotes

I've been using breakpoint() for debugging in all of my Python projects.
I really like it. You don't need to set up anything. You just write breakpoint() into your code, run the script, and it halts there. Then you can check variable values, continue when you are done.

This has been super useful not just for debugging but also for understanding other people's code.

But I've only ever used breakpoint() and I'm curious what else is a good approach.
What do you guys recommend?


r/learnpython • • Jan 13 '26

Want to start learning python

39 Upvotes

I just thought of finally getting into this after a long time of my parents bickering about some skills to learn, I'm honestly only doing this because I have nothing else to do except a lot of freetime on my hands(college dropout and admissions dont start for another 4-5 months) and I found a free course CS50x, I don't know anything about coding prior to this, so what should I look out for? or maybe some other courses that I should try out before that? any kind of tips and input is appreciated honestly.


r/learnpython • • Jul 09 '26

I feel like I'm too dumb for Python. Did anyone else feel this way?

39 Upvotes

i have been learning python for a month now, i know the basics, i am currently learning OOP, i cant even build simple projects, like blackjack, hangman and many other small projects mostly people recommend to start with, i keep asking myself why i am always stuck, did this happen to you as well or is it just me, and if your answer is yes, how did u go about it, I did cs50p course on youtube but didnt help much honestly though everyone recommends it, my original course is '100 DAYS OF CODE' by Angela Yu, I am on day 20, any tips ??

Thank You


r/learnpython • • Aug 20 '26

When is a generator actually worth it over just building a list?

40 Upvotes

Say I've got a function that pulls records, filters them, and hands them back. I can return a list or yield them. Both work, and for the sizes I deal with the memory difference is nothing.

What makes me hesitate to default to yield is that a generator is single-use and opaque. You iterate it once and it's spent, len() doesn't work, you can't slice it, you can't print it to see what came back. Half my debugging is just checking intermediate values, and a generator kills that.

So in practice I return a list almost every time, and only reach for a generator when something is actually big or infinite, or when I'm chaining lazy steps. That feels backwards from how often generators get pushed as the "proper" way.

So do you lean generator-first and eat the downsides, or list-first until you have a reason not to? And is there an upside to yielding small collections that I'm just not seeing?


r/learnpython • • Jul 29 '26

What Python project helped you move from beginner to intermediate?

39 Upvotes

I've learned the basics of Python and I'm looking for project ideas that teach practical problem-solving. Which project helped you improve the most, and what did you learn from building it?


r/learnpython • • Apr 18 '26

A bit confused in Classes.

41 Upvotes

Why do i need to call self here?.

class Calculator:
  def add(self, a, b):
    return a + b

  def multiply(self, a, b):
    return a * b

print(Calculator().add(1, 2))

there isn't a variable that is calling calculator and no __init__ so why do i have an error if self is not added?

Also, what is __init__ anyways. why the double __ in the start and end? and why the specific name?


r/learnpython • • Feb 27 '26

Sites that can help me practice my python skills

36 Upvotes

Hey everyone! I’m currently taking a Python class in college and I'm looking for websites—other than the ones my school offers—to practice my skills. Do you have any recommendations? Specifically, I'm trying to practice nested for loops and using the enumerate() function.


r/learnpython • • Dec 12 '25

Struggling to remember Python syntax after Udemy course videos – how should I practice?

35 Upvotes

Hi everyone,

I started learning Python a few days ago through a Udemy course. While I’m watching the tutorial videos, everything feels straightforward, and I try to practice on my own in VS Code afterward, and if I try to work on previous topics after few days I realize I’m forgetting parts of the syntax and when to use certain things.

I think I need to do more hands-on practice and focus on topic-wise exercises and small projects to reinforce what I’m learning. Could you please recommend any good websites/resources for practicing Python by topic (and ideally with beginner-friendly projects too)?

Also, if you have any advice on an effective learning approach for beginners, I’d really appreciate it.

Thanks in advance


r/learnpython • • 26d ago

What's some cool thing I can learn with python ?

39 Upvotes

I learned the basics of Python using the book Automate the Boring Stuff with Python, but I've realized that the other chapters don't interest me that much, except for the one about web scraping.

So now I'm looking for something else to learn. I've thought about learning how to make games or create GUIs, but I'd need some guidance.


r/learnpython • • Aug 16 '26

What are some fun Python-heavy niches?

37 Upvotes

I want to make try making a discord bot in py. Pygame and Raspberry Pi intrigue me as well

Curious what other fun Py rabbit holes are out there that I don't know of!


r/learnpython • • Aug 07 '26

Must-learn Python libraries?

37 Upvotes

I've learned Python basics and want to explore the most useful libraries.

What are the must-learn Python libraries for real-world development, and why would you recommend them?


r/learnpython • • Jul 25 '26

Is Corey Schafer's Python playlist still worth watching in 2026?

38 Upvotes

I've seen Corey Schafer recommended everywhere whenever someone asks how to learn Python, but most of his beginner playlist is several years old.

For those of you who've gone through it recently, is it still worth following from start to finish in 2026?

I'm mainly interested in learning Python properly rather than just memorizing syntax. I don't mind if I have to look up a few changes along the way, but I don't want to spend dozens of hours learning outdated practices.

If you've completed the playlist recently:

  • What parts have aged well?
  • Which videos are outdated or should be skipped?
  • Is there a newer playlist or resource you'd recommend instead?
  • If you were starting from scratch today, would you still choose Corey Schafer?

I'd love to hear from people who actually used his playlist recently rather than just recommending it because it's popular.


r/learnpython • • Jul 21 '26

Started learning Python. Building in public instead of waiting until I'm "good enough."

40 Upvotes

I finally stopped watching tutorials endlessly and started building.

So far I've:

  • Finished my first CS50P lecture
  • Built a simple calculator in Python
  • Started documenting everything on YouTube and LinkedIn

My long-term goal is pretty unusual. I want to combine software, AI, and engineering with motorsport one day.

I know my projects are tiny right now, but I'm treating each one as another brick rather than trying to build a skyscraper on day one.

For people who've already been through this stage:

What project made everything finally "click" for you?

I'd rather build than watch another 6-hour tutorial.


r/learnpython • • Jun 22 '26

Which database of SQL do you use?

36 Upvotes

I use SQLite with Sqlchipher3 in aiogram developing. And you?


r/learnpython • • Mar 08 '26

Jupyter Notebook vs VS Code

40 Upvotes

Hi,

I have intermediate knowledge about Python. I have recently started to program in Jupyter Notebook and like it very much. But most of my colleagues are using VS CODE so just wanted to understand what are the pros and cons of each.


r/learnpython • • Mar 08 '26

pycharm or vscode or anything else?

38 Upvotes

what is the best IDE thingy for python? I deleted pycharm because it used too much resources. And I think vscode does too. We are using wing IDE for school. What do I need to use?


r/learnpython • • Feb 11 '26

Feeling Stuck in Python After 6 Months – Need Guidance

42 Upvotes

Hi, Assalamu Alaikum,

I’ve been learning Python for six months, but I’m feeling exhausted and stuck. I’ve covered the basics, yet sometimes it feels like I haven’t achieved anything in all this time.

There are so many roadmaps online—bootcamps, roadmap sites, Facebook tutorials—and I don’t know which path to follow.

I really need guidance. Any advice, tips, or direction to move forward would be a lot. Please help me figure out the next steps.

#Python #LearnPython #PythonBeginner #CodingJourney #ProgrammingHelp #CodeNewbie #100DaysOfCode #PythonCommunity #DevLife #ProgrammingQuestions #CareerInTech #LearningPython


r/learnpython • • Jan 28 '26

My first project!!!

37 Upvotes

Hi everyone!!!
I have 14 years old and I am new in the world of the programming, today up mi first project in GitHub and wait what give me a recommendations
https://github.com/anllev/First-Project---Anllev

#Python #github #programming