r/learnpython • • Apr 19 '26

How do I learn python as someone with ADHD?

0 Upvotes

I’m currently a senior in high school and I really want to start learning Python. However, I've run into a major wall: I’ve tried several online courses, but I find it almost impossible to stay engaged with the traditional "watch-and-listen" format. My ADHD makes it very hard to focus on lectures without an immediate practical application.

Does anyone have recommendations for resources or courses that are heavily project-based? I think I would learn much better if I were building things from day one rather than just memorizing syntax. I'd love to hear from other neurodivergent coders about what actually worked for you!

Is Udemy okay?


r/learnpython • • Jan 12 '25

Age problem?

3 Upvotes

Hello all! How old were you when you started learning Python? Do you guys think 33 is too late to start learning Pyhton?


r/learnpython • • Aug 16 '25

Hi I’m 15 and wanna learn python !

3 Upvotes

I said I wanna learn python because I want to be a dev later on ! Can u please say where I can begin and maybe give me some tips ! When did you start ?


r/learnpython • • Mar 11 '25

I am new in python. I want to learn it in such a way that I can be good or best programmer in coming future. any experienced senior can provide me tips to learn.

2 Upvotes

As I said I am new in python programming and I have to get help of ChatGPT for most questions and problems. When I approach friends, how do they solve the problems or what does the functions or certain lines of codes do they say ask to chatgpt it will describe everything in details. But although being a beginner I know doing this I snot a correct way of learning progaramming/coding. So here if anybody having experience or pro can you guide me and provide me the best way possible to learn programming language (python, JavaScript).


r/learnpython • • Nov 29 '21

A desperate plea for help (StackOverflow did not help)

60 Upvotes

We have a list [8,6,7,7,3,4,5,6,6,7,2,3,4,5,3,6,6,5,6,7,7,8,9,1] (this list is just an example of what can be inputted). Using iteration, find specific sequences 1 by 1, comparing their length at the same time, overwriting shorter ones with longer ones.

The sequences we are searching for follow a pattern: starting with a flat(or a single element), then dropping, then growing (e.g. 6 6 3 3 4 5 5 6)

After doing all of the operations, return the first longest sequence. In the given list, that would be [7,7,3,4,5,6,6,7]

This is what I was able to come up with:

https://github.com/Whymyusernametaken/a-problem/commit/c8180423f9c274887c453784a7b3d0dc5384750e

The code should print out [7,7,3,4,5,6,6,7], but it prints out []. Any way how I can make this work? Rewrite my code, if it won't do.

Thanks

edit:issue solved, working code on github link in one sec


r/learnpython • • Dec 04 '24

difference between python and python3

0 Upvotes

im new to python, what are the key differences between those 2 ?


r/learnpython • • Nov 09 '23

CONFUSED LOSER

0 Upvotes

i am an electrical engineer.i am 39 and unemployed. i did a DATA SCIENCE course for seeking a job.

But i used to watch python related videos for two years. In the course they taught the basics of python, simply like theory but not practical stuff like OOPS, functions, classes etc.

the problem is whenever i study DATA SCIENCE concepts i forgot python and when i study python i forgot DATA SCIENCE concepts. This has been going for more than a year.

i have downloaded a ton of python books and online courses recommended in one of the threads suggested in this forum.

now i have been given a youtube data harvesting projects that include streamlit, mongodb and sql.

but i am not able know WHEN AND WHERE I should create and use functions to retrieve data from youtube. the advice given to me was that i should search the INTERNET FOR writing code for this project.

i can understand the theory part like to get an API key etc, but i am not able to implement it practically.

neither do i want to copy these codes from github(i have found out that many have done this project)

where i am going wrong i dont know. i am unable to grasp concepts when they have been taught to me once or twice. i dont know if i am having attention deficit disorder.

when i post these questions in forums the answer i get is, " practice MORE".

I HAVE TRIED various competitive programming sites like codechef, hackerrank etc. BUT THE MATH PART CONFUSES ME.

what should i do? to implement theory concepts in python to codes. i dont have a study plan.

where CAN I FIND ANSWERS TO THESE QUESTIONS?


r/learnpython • • Feb 01 '25

I have never used Python. I am just trying to install one thing from GitHub but have no idea what I'm doing.

0 Upvotes

I just need help figuring out what I'm supposed to do. A friend of mine wants me to print out some experimental roles for a social deduction game. He found this GitHub resource that supposedly can download all of the tokens from the official site. https://github.com/Tsubashi/botc_tokens

The problem is the instructions for the use of the program assume you are already familiar with how to use Python. I downloaded the latest release of Python and installed it. However, the next step just says:

Once you have Python installed, you can install these scripts using pip:

pip install botc_tokens

And I have no idea what that means or how to do it.

Can someone please provide a step-by-step guide on how I actually use Python to execute this command? Assume I have zero programming knowledge and need to know literally everything I type or click or whatever. I'm not a complete dumbass with computers by any means, but I can't figure out how to navigate Python to the root directory. It just keeps giving me a syntax error, and the "tutorials" online make my eyes glaze over because they don't make any sense.


r/learnpython • • Feb 24 '25

Newbie seeking advice for using LLMs as a way to grow as a Python programmer.

0 Upvotes

Please, before I'm downvoted for mentioning LLMs, hear me out. My hope with this post is to describe my method for writing Python programs and get some advice on if it's a reasonable way to do it or how to improve it. I am not new to programming, but I am new to taking it seriously, and I'm also pretty new to embracing LLMs in my coding process.

Generally, I do all the coding myself, and don't rely on LLMs to do the heavy lifting for me. The Python documentation is very good, so I can mostly get what I need from reading through the relevant library documentation.

However, there are times when I'm not sure how to proceed, and as a (relative) newcomer to Python I don't always know things exist that can make my life easier. Usually, if I'm not sure how to proceed, I'll give a very detailed prompt to ChatGPT and include my relevant code. Sometime it explains a built in function or something in the standard library that can help me greatly. Usually my next step is to read up on the library and the specific functions in Python's official documentation.

Then, when I've completed my program, I usually scan it for ways to improve, but don't always see anything that jumps out to me. I actually think this is the most difficult part of writing good programs. At this point I usually paste the code in ChatGPT and ask it if there is any part of my code that is doing more work than it needs to be, or if there are ways to make my code more Pythonic. I don't always use its suggestions if I think it sacrifices readability, but sometimes it shows me that I've done way more than necessary to achieve what I was trying to do. If I don't understand something it suggests I ask it about it in more detail, then usually search for some proper documentation.

My goal is simply to write good, readable, and easy to understand Python code. Does the method I've outlined above sound like a reasonable way to incorporate LLMs into that goal?

Thanks in advance.


r/learnpython • • Jun 18 '26

https://github.com/IbrahimSouhal/python-journey

0 Upvotes

Hi everyone,

I’m a 15-year-old Python learner.

I’ve been working consistently on my GitHub for about one month with strong discipline, documenting my Python learning journey and trying to improve every day.

I’ve already received very positive feedback from AI tools like Claude and Grok, as well as from several people, who said my progress and consistency are impressive for my level.

Still, I want honest feedback from real developers.

I’d appreciate if you could review my GitHub and tell me:

What I’m doing well

What needs improvement

How I can make my profile look more professional

What projects I should build next

I’m serious about improving and becoming much better.

GitHub: https://github.com/IbrahimSouhal/python-journey

Thanks!


r/learnpython • • Jul 29 '26

I don't know why the output is coming None pls guys help me out

0 Upvotes

import random

def get_choice():

player = input("Put the your choice:-")

computer = [ "rock" , "paper", "scissor"]

computer_new = random.choice(computer)

choices = {"player_choice": player,"computer_choice": computer_new}

return choices

def new_win(tic, toe):

if tic == "rock" and toe =="scissor":

return " It's tie "

responce = get_choice()

new_responce = new_win(responce["player_choice"] ,responce["computer_choice"])

print(new_responce)


r/learnpython • • Mar 11 '25

My code works and idk why

13 Upvotes

So basically, I'm new to python and programming in general. Recently I made a file organizer project that organize files based on the file extension (following a tutorial ofc). It works, it's cool. So then I head over to chatgpt and asked it to make an image organizer using the existing code that I have. And it works! It's really cool that it works, the problem is idk why. Even after asking chatgpt to explain it to me line by line, and asking it to explain to me like I'm a toddler, I still don't quite understand why anything works. My question is, is this normal for programmers? Sending your code to chatgpt, ask it to fix/refine the code, don't understand a thing its saying, and just going along with it? And, is this a good or optimal way to learn coding? Or is there a better way?


r/learnpython • • Jan 27 '24

Which free ai is better for coding?

4 Upvotes

Bard ? Chatgpt? Or sth else?


r/learnpython • • Jan 27 '24

Chat GPT -- insanely productive

0 Upvotes

I'm sure this has been said before but I've learned more using chat GPT than slogging through a full blown course.

Am I skipping fundamental understanding from the ground up? Probably!
Have I learned more about python in 12 hours using this method than 12 hours of MITOpen courses? Absolutely.

My biggest hurdle has always been getting started, the entire idea of writing a script has held me back for ages. I can read code and then basically copy it directly. Then, when I want to build on it I have to google the correct syntax over and over to edit one small line
Then, to write something new, I'm utterly lost and end up referring to billions of tabs, github examples, term libraries, and notes just to write 10 lines of code.

CGPT cuts the time by a billion. Don't understand a line in the example? break it down, 3 different ways so an idiot like me could understand
Want to modify a graph in a way you couldn't possibly describe with google? CGPT will shed light on all the right terms and functions in 0.001th of a second.

I know this method is flawed and not traditional, and I think if I was going to make a career out of this I would reach a level of understanding where not learning from the fundamentals up would become a huge problem. I'll miss out on some key conceptual understanding early on maybe, but I couldn't care less if it means I can finally DO something.

I can't understand how else I would do this. What other redflags am I missing? Too good to be true???

Edit: I love the cautious optimists and sage warnings. Let’s be real though: I am not a computer scientist and never will be. Relax, I’m not coming for your job or seeking to taint whatever precious hegemony you’ve adopted. I’m just a kid excited to be empowered to learn a little more about computers and this lil program is helping me get there. Just let me enjoy my small victory please


r/learnpython • • May 24 '24

Now I m confused and depressed too

3 Upvotes

I was looking for starting my journey to get into AI And ML and automating things through python, because I actually love working in python but after my last post I don't have that confidence with python as everyone is saying it's just fanboys who says python is good for these things and it's slow, it's only a beginner friendly language and can't relly on it for future and all. My summer vacations will be starting soon and I was so excited and now I m depressed like hell. Please someone help me through this and kindly guide me if you can


r/learnpython • • Jun 28 '24

100 Days of Code, Day 39, Skipping that S$#t

1 Upvotes

okay so basically, i am at day 39 of angela yu's 100 days of code course and there is API we need to use to get flights data but this Tequila by KIWI website is broken and i can't even find a normal alternative so i am going to skip this 2 days, is that okay?


r/learnpython • • Jul 25 '24

pandas.readcsv() cant read values starts with 't'

1 Upvotes

I have txt file that looks like that:

a   1   A1
b   t   B21
c   t3  t3
d   44  n4
e   55  t5

but when I'm trying to read it into data frame with pd.readcsv(), the values that start with 't' interpreted as nan and all values to the end of the line. what can I do?

my code:

import pandas as pd
df = pd.read_csv('file.txt', sep='\t', comment='t', header=None)
df
   0     1    2
0  a   1.0   A1
1  b   NaN  NaN
2  c   NaN  NaN
3  d  44.0   n4
4  e  55.0  NaN

How can I make it read all the values in the txt file to the dataframe? Thanks!


r/learnpython • • Dec 04 '24

VS Code makes me feel like a complete moron.

1 Upvotes

I can't figure out how to do anything. I want to install some packages. Just simply typing pip immediately gives me an error, saying "pip is not defined". I have downloaded Python. I did it again just this morning. I clicked the box to add it to PATH. I have selected the right interpreter. I have downloaded the Python extension, as well as the pip installer and pip manager extensions.

Why is everything with Python so complicated? I use R a lot and haven't had 5% of the issues that I'm having with the very first steps of Python.

EDIT: I think I have a resolution (thanks to you all). I really appreciate all the input and help here. Great community.


r/learnpython • • Aug 06 '24

Is there a way to use PyCharm for free?

0 Upvotes

Hello, so I’m taking an online course and it doesn’t make it clear on how the instructor is using PyCharm.

Is there a way to use PyCharm for free without the free trial?

Can someone please help me?


r/learnpython • • Nov 28 '21

learning python NSFW

2 Upvotes

Hi guys ,

I from morocco , and I learnpython please anyone help me for learning


r/learnpython • • Sep 18 '23

Why does Python seem so complicated?

0 Upvotes

First, a little background. I've been using Excel for ages now, about 15 years now with a large increase in the last 5 years. Mainly functions and visuals, a small bit of optimization and a tiny bit of VBA. I'm more than comfortable with vlookup, and our work computers aren't updated so I haven't had much opportunity to use xlookup. I've made things with the sort, filter, and offset function to include conditional formatting as study aides for GRE study resource. Within my current field, I'm considered a wizard, however, against true wizards I'd be a novice. But I can use it very efficiently and relatively easily.

I'm in the process of switching careers, and as part of that I'm learning Python. I'm in a course that had us do some courses in DataCamp to help learn Python. I completed the courses, but it was mainly brute forcing my way through. I'm going back through and trying to recreate much of the items we went over to make sure I 'get it'.

I've been using ChatGPT to help me along the way, and I can generally get what I need, but I have no understanding of what I'm actually doing. And that's my problem. In Excel, I understood exactly what I was doing and could effectively trouble shoot any issue I ran into.

With Python, I'm stuck using ChatGPT, and if ChatGPT can't solve it then I can't seem to do anything. It just doesn't make sense to me. I have numpy, pandas, openpxl installed. I even tried doing some web scraping with selenium, which I was able to get it to open a web page, but nothing beyond that. That one I was definitely reaching too far on, and I get that, but I use it to show I feel like I'm a decent trouble shooter.

Maybe I'm overestimating my abilities, but I just cant get an understanding of how to effectively use Python. I feel like I have to envision every single aspect of what I'm doing, and as someone who isn't a very visual thinker, that basically means I need a separate log of anything I'm doing before I do anything. And the feels anti-productive.

I loaded a file into Python and there are two columns of data I was trying to turn into arrays. That took me like an hour to get done and I ended up turning them into values rather than arrays. Actually, I suppose it was a bit of both, but it just seems needlessly complicated to try and understand what I'm doing.

How do you keep track of what you're doing? Using things like .head I thought might be helpful, but there are mixes of blank and empty data. It has over 2000 rows and a quick visual of it makes it even more complicated to look at it. Is it best just to accept I'll use ChatGPT without understanding?


r/learnpython • • Jul 30 '26

Is it worth learning Python?

5 Upvotes

Hello there. I was wondering if learning how to code in Python is worth it. Can it yield any money if you get good at it? The career I am looking at is translation-interpreting, and want to know if I should invest time in learning Python (or any programming language for that matter), even though it is not really related to the career I am pursuing.


r/learnpython • • Nov 20 '25

Is learning clean coding still a thing for building career in 2025? (NOW!!)

7 Upvotes

I am a data analyst at working in a company and trying to change my job, I have been working here for more than two years as of now and want a shift in my career, although I have worked here still I feel that I am not that good ad coding, overall I'm good at my work, but I feel I have not much upskilled myself in writing clean code. Also I just feel like now everyone's just vibe coding, you just use some kind of AI / copilot to put your idea into code. So, what should be the next step. Should I still learn to clean code or I should just look for a better job because I'm good at it? Because I don't know what companies are expecting now, especially in the DataScience field.


r/learnpython • • Apr 01 '24

I'm 15 years old and I want to master Python. How can I do that?

0 Upvotes

I've been using chatgpt to give me simple tasks that I can solve but I feel as if I need to do more. Help?