r/learnpython • • Mar 18 '26

What should I make in python?

1 Upvotes

What can I make not too long but its somewhat complicated in pythong so I get my brain working. Open to suggestions


r/learnpython • • Jul 10 '26

python learning begineer, and the question was to give a function like addition and subtraction between two numbers, so i have made this . u can give me ur suggestion and how can i improve.

0 Upvotes
function=input("give a function :")
if function=="add":
    a=int(input("give first num to add with :"))
    b=int(input("second num :"))
    sum=a+b 
    print("sum=",sum)
elif function=="subtract":
    a=int(input("give first num to subtract with :"))
    b=int(input("second num :"))
    diff=b-a  
    print("diff=",diff)
else:
    print("function not allowed")          

r/learnpython • • Jun 23 '26

How do I find a specific word/phrase within 500+ files?

4 Upvotes

So, I have a folder with over 500 .json files, and I need to find a specific phrase (let's say it's "Talk to you later"), so I want to make a code that'd find this word and tell me the file's path. But there's a problem: I don't really know how to code. So could someone help me please?

And don't tell me to use AI, I won't


r/learnpython • • Nov 03 '24

Completely failed Angela Yu's 100 days of coding course. Should I just give up?

0 Upvotes

I thought I was a logical person. I'm an advanced chess player. I work out puzzles in video games very easily. I am a strong problem solver.

I tried Angela Yu's 100 days of coding course as a complete newbie to coding and I got to day 4 and had to give up. It took me 3 weeks to get to day 4 because I couldn't do any of the tasks and had to keep practicing the syntax and trying to figure everything out.

I assume I should just give up if it's only going to get harder. The learning curve seemed extremely steep and it all seemed completely bewildering to me. Maybe I should just get back to my very basic admin job forever :s


r/learnpython • • Mar 12 '24

Is python OOP the real thing ?

4 Upvotes

Hello, I'm currently writing a report on a project where I used python with the OOP paradigm and I want to be sure to not talk nonsense in it.

So, here is my question : Is python really fully respecting the OOP paradigm ?

I mean, for exemple when I want to make an abstract class, the concept doesn't really seem to exist. When I write an abstract method, I am obligated to use a decorator and it doesn't even prevent from calling the parent method. So i need to have a default behavior in it...

Also another question : I have seen that only mutable parameters can be updated in the body of a function. Is it specific to python or something generalized to other languages ?


r/learnpython • • Mar 13 '26

If you don’t know how to code already is it worth learning now?

0 Upvotes

I have been learning how to code in python for the past 6 months now and it has been challenging and also rewarding. I learnt alot of things from the 100 days of python course. I learnt how to use flask pandas tkinter selenium and many more and even went further to learn how to use Django but today I decided to try vibe coding and what normally will take me weeks to get done I did it all in one afternoon and it made me wonder what’s the point of learning it because the ai models get faster than how quickly I can learn all the things you need to know about programming and the minimum barrier to entry keeps getting higher whiles I’m still trying to get to what used to be the level of a junior developer. I am wondering is it worth continuing to learn or do I just find something else to do because now there’s no point in striving to be the level of a junior developer when everyone else has access to AI? Any form of advice on what to do next will be greatly appreciated.


r/learnpython • • Sep 01 '22

I hate using functions can someone shame me into using it

48 Upvotes

please i need to be shamed and punished into using it. or maybe convince me into using it, because I like writing long codes


r/learnpython • • May 28 '25

I want to learn python and I want to do it without touching ANYTHING related to AI. So, how should I start?

3 Upvotes

Complete utter beginner. I briefly played with it for like 30 minutes forever ago and that's it.


r/learnpython • • Mar 27 '25

HELP ME PLEASE

0 Upvotes

So i am a complete beginner in programming, never touched anything related to this in my entire life, today i decided to finally start learning to code and its been very overwhelming,searched for the easiest language then started python, from installing VS Code to downloading python then someone said to download pycharm then doing some stuff in the terminal, learning data types and variables, all this shit felt hard and the thought that this is the absolute basic and i have to learn way more difficult things from here scares me to the core, i am not looking for a roadmap or anything, i have a relative who works at a large tech company who has told me what to learn, i just want to know ,when does it get easy? Like when can i confidently study something and apply that on my code without searching for any syntax or anything, when can i open github or vs code and do stuff like i own the place instead of asking chatgpt for every little detail and any other tips you got for me?


r/learnpython • • May 24 '25

Too late to learn coding?

0 Upvotes

Hello, so I'm 28M and know nothing about coding nor am in a related industry right now. Is it too late for me to learn from scratch and actually get into the programming industry?

Taking into account that it'll take me some time to be a junior level and AIs are able to program at that level and even higher so would it be even worth it for a company to hire me with the level I'd get?

Also how hard is it to get in the industry, how much do you really need to know to be given a work opportunity?


r/learnpython • • Aug 14 '24

Is there any course where I can learn from 0 and get certified?

5 Upvotes

Almost all of the courses need to be payed :(


r/learnpython • • Mar 04 '26

What are variables?? [read post]

0 Upvotes

"Variables are containers...." , "Variables are boxes", "Variables contain data".... okay cool, same description everywhere, I don't get it.

I've got noted down the 4 types of variables, though that is not my question (for now).
My goal with python is game development and maybe web dev in the future (though I'd use JS for that), I tried googling what variables are actually used for but I didn't find anything. Especially not what variables are used for in game dev specifically.

I only found stuff like this:
"name = "Bernie""
"Age = 13"

Then the basic print function. Cool, but that does not help.
I tried to watch youtube tutorials but they all give the same script, box/container... I feel like I don't get it because I never coded before, but even so, shouldn't tutorials be FOR beginners? They are advertised that way at least.

Anyway, TLDR; What are variables exactly (no box/container stuff) and what are they used for in general python and in game development python?

EDIT: Thank you so much for all the responses! I was able to successfully update my notes in a way I can easily understand everything now, also thanks for mentioning other topics, I will be getting to those eventually. :)

(That being said, please do not respond to my post anymore, I'm getting a little overwhelmed with how much attention this post is getting and I can't respond to everyone, just know I'm trying to read everything and updating my notes!)


r/learnpython • • Jun 29 '25

Hey! Complete Python Newbie here!

0 Upvotes

What link would I open? I know it sounds dumb, but most links I see don't exactly look like where a beginner should be.


r/learnpython • • May 01 '25

I am an ABSOLUTE beginner and have no idea where to start HELP.

0 Upvotes

Hi, i want to start learning how to code. i have NO idea what to learn, where to learn from (too many vids on youtube, too confusing) i Just need the first 1 or 2 steps. after i master them, ill come back and ask what to do next. But someone please tell me what to do? like what to learn and from exactly where, which yt channel? if possible link it below. thnx.


r/learnpython • • Jul 14 '26

Logic building and pattern recognition in python

0 Upvotes

I can't see any solution to an easy beginner question in my mind please somebody help every tip will help me a lot you guys helped me a lot in my previous problem kindly help me 🙏😭


r/learnpython • • Jul 24 '26

I want help regarding learning python

0 Upvotes

I am a fresher going to start my first sem ... I am very interested in learning python in an effective way... Can someone help me out .... Can u guys give guidance to me !!


r/learnpython • • Oct 19 '24

Benefits of learning python in general?... for a teenager?

0 Upvotes

I'm thinking of getting a python certificate (or at least try) because AI tech is developing more and more so I thought learning some programming would be beneficial. So can you inform me specifically how python might be beneficial for a teen? And if there's a good alternative for this feel free to write that down too. Thanks in advance.


r/learnpython • • Jul 05 '24

How can I model David Beckham's freekick on code?

0 Upvotes

Basically the title. I'm an IB student taking Higher Level Math and as part of the curriculum's requirements, I need to write a 12-page mathematical exploration on a topic of my choice. To improve my score in one of the criteria, I decided I would model Beckham's freekick on code. I do have prior experience with Python, but not any of its libraries. How do I start? I don't want to GPT everything!


r/learnpython • • Jun 14 '24

How to learn python

0 Upvotes

Are there any ways a social sciences and humanities undergraduate student can pick up python more easily? I tried Linkedin videos, Kaggle, Harvard's CS50 python but it is still difficult and I often have problems solving the code challenges without looking at the solutions. Do anyone have any recommendations on any resources to learn python more easily? Please help.


r/learnpython • • Jun 08 '24

Are there any GUI frameworks that can be used with Python?

0 Upvotes

I did my research and have concluded that NONE of Python's native GUI frameworks (TKinter, Kivy, PyQT) are worth using if you want to create a GOOD-LOOKING interface. I was initially drawn to Kivy because it's cross-platform, but after a 3 hour YT tutorial by a french guy, i realized it's not the one.

Are there any Frameworks I can use that aren't Python Native that can be used with Python? Preferrably cross-platform. I've heard people talking about Flutter in relation to Python but I couldn't get any confirmation

I've been through the subreddit and I realized this is a frequently asked question


r/learnpython • • Jul 07 '24

**ABSOLUTE BEGINNER**

0 Upvotes

I am a complete beginner into programming and i am starting it with python which course is recommended coursera or edX please let me know fast


r/learnpython • • Feb 08 '25

Should I use my main PC or my unused Lenovo Laptop to learn Python?

0 Upvotes

Hi Guys

I want to start learning python so I can learn to build an automated social media page for my business & I want to know if my older laptop would handle it. I have a new mini PC with a Ryzen 5 7640HS, 256GB SSD & 16GB RAM or my older Lenovo Ideapad 3 slim with Ryzen 3 3250U, 112GB SSD & 12GB RAM (4GB DDR4+8GB soldered). I'm thinking I should just use the laptop to begin with as I wont be doing anything too complicated and also scared if I start on my new mini PC then I might break something or severely limit the performance of it.

Will the Ryzen 3 laptop be able to handle basic Python use for a beginner until I get better at programming? Or what would you do if you were in my shoes?


r/learnpython • • Apr 16 '24

Ran about 8 Python scripts back-to-back, now none will execute

0 Upvotes

I got a little carried away writing automation scripts in ChatGPT when my .py files started closing instead of printing. Most were between 20-70 lines and imported between 1-4 packages. I’m still able to execute from the command line, just not from the .py files themselves. Is this something that happens when executing from .py files? I was hoping to share the files with coworkers but they won’t be too happy if the files stop working after a handful of runs. Did I do something wrong?

Edit: a little more info - I copy/pasted the code that GPT wrote into a .py file. The first handful of times I did this it would run, after about the 5th time the code that was just working-I didn’t edit at all-just closed. I wasn’t using an IDE, just running as a .py file.


r/learnpython • • Mar 31 '24

How do I learn python?

0 Upvotes

When looking online I found some resources like Mimo and SoloLearn, I was wondering if these were the optimal ways to study python or if there are better ways.