r/learnpython • • Feb 05 '25

Is to too late for me to start learning Python? 30M

8 Upvotes

Hey guys, first time posting!

30M, good job in finance. I'm seeing the massive growth in AI and it seems like Python is a good language to learn which could help with my current role, and be useful for any AI projects I want to create on the side.

That said, I'm now 30 and no-longer have the energy or neuroplasticity of my 18-year-old student self! I wondered if there are any other python pros who began a bit later in their career?

I see these 15-year old coding wizz-kids and wish I started earlier!

Thanks a lot :)


r/learnpython • • Aug 02 '24

What's wrong with the max module of python ?

0 Upvotes

The answer of this code is wrong. The output is supposed to be 25 but for some reason it's 9.

Code:

list=['9', '12', '8', '25', '23']

biggest_number=max(list)

print(biggest_number)

I tried the following code with the following input in different IDE's but every single one of them gave the same answer, maybe the max module is taking the 9 as 90. Any comments or help would be appreciated to solve this issue.


r/learnpython • • Jan 04 '26

How can I use AI to help me learn without just straight up giving me the answer?

0 Upvotes

I want to use it as a tool for learning and not just giving me straight up answers. THoughts?


r/learnpython • • Nov 07 '25

Is it realistic to start freelancing after learning automation skills from “Automate the Boring Stuff”?

0 Upvotes

So, I want to start making some side money to aid myself while learning programming because for the time being I have no income source so I have came up with the idea of reading the book automate boring stuff with Python, it teaches a set of skills or micro-skills I don't really know like web scraping, file manipulation, spread sheets and a bunch of automation related skills and the idea was I'm going to read it and freelance using these skills I have a good knowledge with programming in general but nothing to start making money and I'd really appreciate any suggestions or any guides and I'd really like to hear your opinions on this little plan I have.


r/learnpython • • Oct 04 '25

Can i make a password be a boss fight

0 Upvotes

lets just say, that in order for someone to enter a website, or anywhere, they must first beat a videogame boss first then they can proceed?


r/learnpython • • Sep 02 '14

Dont upvote just help if you know please

6 Upvotes

http://pastebin.com/CHWhwNNB

It's my second day of learning programming and I have been using a book called "How to think like a computer scientist - Learning with Python 3" currently finishing chapter 2 and I'm stuck at the last assignment.

It is meant to say what day of the week im leaving on. Monday = first, Tuesday = second etc.

I can't figure out why It always answers "That is a first day of week" no matter of whether I type monday, tuesday or any other day.

I guess it's something stupid but I cant figure it out. Anyone sees the bug?


r/learnpython • • Sep 29 '25

Is it bad to use Chatgpt(or any other llm) for building projects as beginners?

1 Upvotes

I heard a lot about not using any ai tools while learning in the initial phase of learning. Is it true?

For more context, I'm building a CLI based project from roadmap.sh(Task Manager) so I used Chatgpt to know what topics should I know before building this project, and then I used it again to learn 'argparse' module in python. I told my friend all about this, then he goes on to give me 15 minute talk about how should I only use Google and blah blah. I tried to Google argpsrse module docs but they are too technical to understand for my normie brain. So I used Chatgpt to simplify the content. Why am I concerned about my friend's 15 min talk, because he's placed in a good company with a really good package, so his advice holds some weight.


r/learnpython • • Jul 30 '26

What do we use the terminal for in coding?

0 Upvotes

A text-based interface that lets you interact with your computer by typing commands.

This was a given definition of it when I searched it up, but why would you interact with your computer by typing commands? How does this actually assist your code?


r/learnpython • • Sep 30 '23

I don't understand what python or coding even does

1 Upvotes

Trying to learn Python as a total beginner. Tried to watch a bunch of youtube tutorials but they just kind of ramble on and show what you can type like. Int -2777 float 2.7 string "hello" bool true1 or false0 print("hello world!") print ("hello", "end", 87, False, end="\n") moves to the next line with the n

For instance. and it literally means nothing to me. Can someone link a video or just explain to me what coding even is? right now it feels like i am just typing in random words into a text file. And i need to grasp the concept before i can begin to learn anything so i am just stuck. Please help

EDIT: Alright it seems https://www.youtube.com/watch?v=8mAITcNt710&ab_channel=freeCodeCamp.org was is the best way to get started, thanks everyone :D


r/learnpython • • Sep 16 '24

How fast to you think someone could learn python?

0 Upvotes

If I were to spend all the free time I have (about 8 hours a day) could I become very sufficient at python?

Background: I’m a machinist and a bit of a nerd I have some knowledge of programming but I have never learned a full language.


r/learnpython • • Jun 02 '23

My Python is having mood swings. I'm thinking of killin git.

1 Upvotes

Getting real tired of this bullshit. One day all good. Next day "No module called numpy". Okay pip install numpy --> Already there. So ehmm. Whatever. Absolute garbage.


r/learnpython • • Jun 01 '23

So how dysmal is the job outlook for a future programmer ( now that AI is able to code) who plans to specialize in python etc.. and then move into AI/ML etc..?

19 Upvotes

I'm seeing insane chatGPT type sites like Phind that are able to just print you code with a simple command (i.e. I say "how do i make a 3x3 square of # with python" and it gives me line by line the exact code how to do it 3 different ways).

I'm one month into learning python (halfway through CS50-P and was putting in at least 1-2 hours a day trying to have a hail-mary for my situation where my medical problems have kept me from getting a good job so far. Now i'm legitimately terrified at my job prospects for the future as I'm seeing HUNDREDS of videos and threads pop up all recently with pure doom and gloom on the future of programming that AI will take it over etc..

The only silver lining I see is that if i'm WORKING WITH AI/ML that maybe I'll still have a chance at a high paying job. But is programming really worth it if in 5 years time it's nearly impossible to even get hired anymore and only at a max of $40-50k? Can someone help me understand the best path forward to get into a higher paying salary position with these types of tech that will have some staying power?


r/learnpython • • Aug 25 '26

It’s so difficult to stop using AI

12 Upvotes

I hate admitting that I use AI to code. I have so many research projects in which I HEAVILY used AI. Now, I can explain the code, however, if I’m going to reprogram the whole thing, I’d either have to look again and again at the previous code or use ChatGPT.

What about debugging? Yeah no, ctrl+C ctrl+V into ChatGPT. I think this is because I’m lazy. I don’t want to take such a long time to debug when AI can give me the solution very quickly.

I’ve read some of the python documentation and it was… ok, but AI just explains it so much better and it takes much less time, but I can feel that I really can’t program well at all.


r/learnpython • • Aug 20 '24

How effective is using ChatGPT to learn Python?

3 Upvotes

I want to let all of you know that whenever I'm stuck on a Python problem or question, or if I don't understand something, I use ChatGPT as a tool to give me a solution on how to solve the problem, and to explain what each line of the code means, then I type the code myself even if I were to copy the code from ChatGPT (Not copy/paste it or else I won't learn, just type it down myself and that's how I slowly got better at coding). Most of my Python programming knowledge came from ChatGPT rather than from my tutors at university. I'm not saying the tutors are bad but I'm saying to learn Python or any other language, it's mostly self-taught, the tutors can only give you some ideas or explain to you what each part of the code is trying to say, similar to how ChatGPT explains it, but for most people, programming in any language is self-taught, and using ChatGPT works best for me when it comes to learning Python. What do you guys think? How effective is AI when it comes to teaching you how to code in Python or any language?


r/learnpython • • Jul 12 '25

Learning Python: can AI tutor me?

1 Upvotes

I'm trying to learn Python programming. Could I use AI (like a chatbot) to help teach me coding? Maybe it could explain concepts or give practice problems. Has anyone used chatGPT or other models to learn a programming language? How effective was it compared to online tutorials or a human tutor?


r/learnpython • • Apr 27 '26

Why do we use not and TRUE and False in Python?

4 Upvotes

Why do we use not in Python? I don’t really understand it.

For example, if a variable is already True or False, why do we use not to make it the opposite? When should we use not, and why is it needed?

Can someone give a simple, real-life example (like login or something similar) to explain when and why not is used?

and also why do we use true or false and what is a bolean? i am new when it comes to learn python please be nice.


r/learnpython • • Oct 02 '26

What 's the fastest way to learn python?

0 Upvotes

Hello guys Im looking for a fast roadmap to learn and practice python. I bought a course in udemy called ' 100 Days of code : the complete Python Pro bootcamp ' but I do not know if it was a good purchase.


r/learnpython • • Mar 18 '25

Can I make my own AI with python?

0 Upvotes

It can be easy model, that can only speak about simple things. And if i can, I need code that use only original modules.


r/learnpython • • Sep 05 '23

1. Should I learn programming in 2023+?

0 Upvotes

Should I learn programming in 2023+?
Im just wondering if its worth to learn it and do some projects, I dont have tech uni and since chatgpt was released you ask it for stuff and it shows you code and even tell you where you have a mistake in code which is big turn off for me, so I want to ask some pros if its really worth start learning it if I would possibly want to get a job somewhere


r/learnpython • • Dec 30 '24

what is the difference between return and print()?

4 Upvotes

i dont understand the difference between return and print(), like when and why should i use print() and when and why should i use return?


r/learnpython • • Mar 31 '25

I want to learn python

1 Upvotes

Hi guys, I want to learn Python. Can you help me? I'm a beginner who doesn't know anything about programming yet. Can you tell me how I can learn and how I should learn?

What projects should I do as a beginner?


r/learnpython • • Jul 18 '25

Help me please I can't code!

0 Upvotes

Hey fellas ! I started learning coding 2 week back , I'm a non math kid so i tried learning python from scratch and i was learning things like operators data types functions if else elif loops etc .. than i started write codes those task code which my online yt teacher asked us to do but I can't code tht like I can't create logic on my own thn I used to watch the answer thn I think man i could have done tht it's so easy I'm dumb it's like I know what python syntax is everything about it but I can't code on my own other than some simple stuff. Should I drop it? Or carry on ? It's been 2 weeks I have watched around 10hrs of content... please help me.


r/learnpython • • Jan 12 '24

Really struggling with understanding the if __name__ == "__main__": statement

0 Upvotes

I've been reading articles and documentation on this but for some reason I'm really struggling to understand it. Can someone explain to me specifically what this line of code does in the function pictured below? I think if I make it specific to my own program it will help me understand. I got this from generative AI.

def get_user_credentials():
    global user_name, user_password
    if __name__ == "__main__":
        while True:
            user_name = input("\nEnter your username or type return to return to the previous menu:\n")
            if user_name == 'return':
                main_menu()
            if not user_name:
                print("Please enter a username.")
                continue
            user_password = getpass.getpass("\nEnter your password:\n")
            encrypted_user_name = encrypt(user_name, b'secret_key')
            encrypted_password = encrypt(user_password, b'secret_key')
            return encrypted_user_name, encrypted_password, main_menu()


if __name__ == "__main__":
    user_name, user_password, _ = get_user_credentials()

r/learnpython • • Oct 09 '24

How do I learn Python.

10 Upvotes

I am from non technical background, I have no prior idea of any coding language or anything like that. My objective is to become employable. From where should I start and which free resources I can use ?