r/learnpython • • Sep 13 '20

A reality check on GUIs

4 Upvotes

Beginners like GUIs, I get it. You get a high sense of accomplishment from it and it's the kind of software that you already know and interact with.

Here is a much needed reality check for those of you who want to write Python professionally:

It is unlikely that you will every be paid to write GUIs in Python

Non-technical users will probably never interact with your code directly. You will be much more likely to write:

  • backend services

  • data pipelines

  • CLIs

  • library code

  • code in the realm of optimization, scientific computing, data science, machine learning and probably a lot of other math-heavy domains

But what if I like graphical user interfaces?

Then the web stack is probably where you should start: HTML, CSS and JavaScript (or any serious language that compiles to JavaScript, like TypeScript, ReasonML, etc.). The web stack is not just for web, it's also penetrating desktop and mobile.

Don't worry, you can still use Python in the backend.

But I heard from that one company that develops GUI desktop applications in Python!

Okay.


r/learnpython • • Oct 21 '26

Looking for a coding buddy

0 Upvotes

Hey everyone!

I’m looking for a coding buddy who’s also taking 100 Days of Code: The Complete Python Pro Bootcamp by Dr. Angela Yu on Udemy.

I’m just starting with Day 1 and would love to connect with someone taking the same course so we can learn together throughout this 100-day journey.

The goal is to keep each other motivated and accountable, share our progress, discuss what we’ve learned, help each other when we get stuck, and celebrate our little wins along the way.

It would be great to have someone who’s also a beginner, but anyone taking the same course is welcome! No pressure to be an expert — we’re here to learn and improve together.

If you’re taking the same course, feel free to comment or send me a message. Let’s keep each other motivated and complete these 100 days together!

Happy coding!


r/learnpython • • Jul 06 '25

People who say Python is slow - are they misleading?

3 Upvotes

I was just watching yet another video online saying "Python is not good for X because it's slow".

My question is: is that always true though? What about CPython / Cython? In theory, what stops us from simply compiling our Python programs to C for increased performance if the project demands it?

I got an Oreilly book "High Performance Python" and it shows multiple examples of tightening the screw on Python, but personally I haven't tested it yet.

I can't shake off this feeling that people who are so quick to vocally dismiss Python on every occasion don't actually know it's hidden tricks. Or am I wrong here? Are there any significant issues with CPython or Cython?


r/learnpython • • 15d ago

what can I use python for?

0 Upvotes

Lately, I've been thinking about learning a new programming language. Python was the first one that came to mind, but then I started wondering: What would I actually use it for?

I already build mobile apps with Flutter and dynamic web applications using PHP and MySQL.

I'm always looking for something new to learn, but I also want to make sure I'm learning something I can actually put to use.


r/learnpython • • Jan 03 '23

How can I successfully build an AI Girlfriend using Python?

1 Upvotes

Planning on recreating the chatbot from the movie Her.


r/learnpython • • Jan 13 '23

Is it possible to program an artificial girlfriend?

0 Upvotes

This is serious, I am very lonely.


r/learnpython • • May 15 '19

Am programmer, stuck on plane for 9 hours, wanting to pick up Python. What do you recommend?

0 Upvotes

First a little context. I'm flying across the ocean in about a month, so going to be stuck in this metal tube for 9 hours. I thought it would be a good idea to make use of that time and pick up some Python skills. Since I'm a C/C++ programmer I am already familiar with programming in general, but would like to get your recommendations for suitable off-line resources to get up to speed with Python3. Obviously I'll be carrying my MBP, with a Ubuntu VM, so hacking on some code is going to happen anyway, might as well be Python3. Thanks!


r/learnpython • • Oct 13 '15

Entire Python Language in a Single Image!

27 Upvotes

Check this link for the image. Take a large print out!


r/learnpython • • Jul 06 '24

How can I learn python ?I'm 16 and have no idea about computer science, so I need a free course for beginners ,and some books to help me study the language ,please guys I need this course with problems to practic .I'd be very glad with any help 💗💗

14 Upvotes

Need you (•̀ᴗ•́)و ̑̑


r/learnpython • • Jun 14 '23

Has anyone figured a code to download a whole subreddit? (at least comments and images) yet?

5 Upvotes

Since every subreddit is going dark as a protest, I am afraid of losing some valuable content that I need to check in the future, and I can't wait till the subs goes back as they might not come back.

Has anyone been able to make a successful code to download the content of a subreddit?

I would much appreciate it. THanks


r/learnpython • • Dec 13 '22

How can I build interactive and proactive chatbot that would act like my virtual girlfriend?

3 Upvotes

How can I build something like a chatbot from the movie Her?

Thanks!


r/learnpython • • Sep 30 '24

How long does it take to learn python?

3 Upvotes

I want to know because I’m doing computer science and it’s kinda hard


r/learnpython • • Dec 19 '24

I want to learn python.

2 Upvotes

I want to learn python. Does anyone have a good website for someone who is a beginner and want to start learning python?


r/learnpython • • Dec 15 '21

How to reduce Excel's entry in a cell by 1 (one) using python's flask. The cell can be any?? NSFW

2 Upvotes

How to reduce Excel's entry in a cell by 1 (one) using python's flask?? The cell can be any so how to reduce the entry by one (1) of only the cell which is required?? What to write in html or flask to check whether the value in the required Excel cell is greater than zero (0) or not??


r/learnpython • • Apr 05 '26

How to learn python for my ai and ml career in ❓

2 Upvotes

Title: How should I learn Python for an AI/ML career?

Hi everyone,

I want to start a career in Artificial Intelligence and Machine Learning, and I know that Python is the main programming language used in this field. I am currently learning the basics, but I feel confused about the right path to follow.

I would like some advice on:

  • What Python topics should I learn first for AI/ML?

  • After basic Python, what should I study next (libraries, math, etc.)?

  • Which Python libraries are most important for AI and Machine Learning?

  • Are there any good free resources or courses you recommend?

My goal is to build real AI/ML projects in the future, so I want to learn Python in the most effective way.

Any guidance or roadmap would be really helpful. Thanks!


r/learnpython • • Jun 25 '26

Polymorphism doesn't work in Python since method overloading does not exist?

0 Upvotes

In most programming languages with OOP, a child class is a strict superset of a parent class. Thus, you can treat child classes like the parent class, allowing for polymorphism. However, this is not the case in Python since it does support method overloading. Consider the following example:

class Parent:
    def method(self): ...
    
class Child(Parent):
    def method(self, arg): ...

def f(obj: Parent) -> None:
    obj.method()
    
f(Child()) # TypeError: Child.method() missing 1 required positional argument: 'arg'

This code would work in most OOP languages as Child.method would be overloaded instead of overridding Parent.method. Python's differing behavior here can be quite unexpected and lead to bugs.

So, how do Python type checkers handle this situation? Should we just ignore this case and trust that people will not override methods like this?


r/learnpython • • May 05 '26

I built a script that initializes Python Projects - Please give me feedback

0 Upvotes

I have a Github repo that has a Python script in it. I've used this script to automate the initial steps of creating a Pyhton project. Those are:

  1. Create a project folder

  2. Create a virtual environment

  3. Update the packet manager - I am using pip

  4. Install requirements

  5. Save installed requirements for sharing

Here is the GitHub link to this repo: Mohamork/PythonProjectInitializer: A script that reduces the initial steps of creating a Python project


r/learnpython • • Sep 25 '24

Why does Python use list(range(1,100)) when most languages will use something like range(1,100).getList()?

0 Upvotes

This also applies to using str(someString) vs someString.getStr(). I'm coming from Java and JavaScript and i'm used to utilities existing on the object as opposed to being global functions that you pass values or generators to.

I understand it's a difference in schools of approach on how to get things done using programming. My problem is - why? What are the motivations for having utilities encapsulated within the objects (i.e. obj(foo,bar).doStuff) as opposed to having a global utility that you pass values into like doStuff( obj(foo,bar))?


r/learnpython • • Jan 03 '25

Are extensions like Cython really turn Python into a compiled language?

0 Upvotes

I was chatting with chatGPT the other day and he told me about compiled and interpreted languages. He’s also told me about extensions like Cython that aim to make your Python code compiled. So, I was wondering if they really give your code the benefits of compiled languages or they work in a different way

P.s. I apologize in advance if my question makes no sense. I’ve never dealt with compiled languages and I have vague knowledge about them


r/learnpython • • Mar 30 '24

can i start learning programming on this pc?

0 Upvotes
  • Processor: Core 2 Duo clocked at 2.14 GHz with 3000E technology.

  • Random Access Memory (RAM): 4 gigabytes DDR3.

  • Storage: 128 gigabyte SSD.

  • Integrated Graphics Processing Unit: Intel 6800.

  • Independent Graphics Processing Unit: REO AMD Radeon HD 5450.

  • Operating System: Windows 10 Pro 64-bit version.


r/learnpython • • Sep 26 '26

How do I read a csv file row by row?

0 Upvotes

i have a school work project in which I need to create a function called weekly that will output the average minimum and maximum of data by a certain row, I have tried relentlessly to figure this out but I cannot seem to, here is the code, it would be awesome if i could get some advice on how to do it at a similar level of complexity to the code provided :).

rows = 52
cols = 7

def readFile(filePath):
    array = [[None]*cols for i in range(rows)]
    with open(filePath) as readfile:
        r = 0
        line = readfile.readline().rstrip('\n')
        while line:
            items = line.split(",")
            for c in range(cols):
                array[r][c] = int(items[c])
            r += 1
            line = readfile.readline().rstrip('\n')
    return array
    
def yearly(array):
    yearTotal = 0
    for r in range(rows):
        for c in range(cols):
            yearTotal += array[r][c]
    print("Yearly total: " + str(yearTotal) + "\n")

rainfall = readFile("csvs/rainfall.csv")

yearly(rainfall)


r/learnpython • • Jan 02 '23

Why doesn't python fix the "off by one" in ranges?

1 Upvotes

I understand that the range function in Python is "off by one" in the sense that range(1,10) generates 1-9 rather than the perhaps reasonably expected 1-10.

My question is: wouldn't it make sense to "fix" this in the language? Or maybe I should say, wouldn't it have made sense in the early days when the language was being created?


r/learnpython • • Aug 09 '25

What is the purpose of the format specifier "d"?

0 Upvotes

When using the format specifier "d" within an f-string, you can only input integers. I've seen online that the utility of "d" is to convert a number into a string of decimal digits, but if the specifier can only handle ints, what is it actually doing? For everything ChatGPT says it does, I have inputted the example into Python without the "d", and all outputs remained exactly the same.


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?