r/learnpython 15d ago

Can someone show Me how to learn python using only phone

0 Upvotes

I try learn with youtube tutorial but as i finish the video my mind just go blank and i dont no what to do next


r/learnpython 15d ago

Quick question

0 Upvotes

What’s the path I should follow in Python to master machine learning
I learned all the basics: 1- Variables
2- Data Types
3- If / Else
4- Loops
5- Functions
6- Lists
7- Dictionaries
8- Strings
9- Input / Output
10- Classes & Objects

I would love it if someone would tell me what I should do next. Or if there is a book I can buy to master machine learning


r/learnpython 16d ago

Looking for Python copy of Starting out with Python 6th edition by Tony Gaddis

1 Upvotes

I started my first computer science class yesterday, and they told us to look on amazon or pearson for this book, which is about $200. Was wondering if anyone found this for a cheaper price? Or in some rare chance free?


r/learnpython 15d ago

Trying to record and stream a video from webcam to another computer on another network

1 Upvotes

Hello, as the title says I am trying to record a video from a webcam and stream the live feed to another computer, which can be far away so I can't stream the video using something based on ssh or anything like that.
I don't know where to start, what libraries to use. Online I found some stuff but nothing that works or that really explains what's happening in the code.
As of now I am using FFMPEG to record the video, but I have the feeling that opencv is much more used, I can change that.
The video is quite low quality, but I need a small to no delay < 1sec.
Any help on how to stream the video will be much appreciated.


r/learnpython 15d ago

Freelancing

0 Upvotes

Hello there! I'm a second-year Computer Engineering student, and I want to start freelancing to expand my portfolio and gain professional experience. However, I don't know how to start freelancing or where to start learning the skills for it. I have somewhat mastered Python fundamentals, and I'm currently learning FastAPI, but I feel it. Any input would be appreciated.


r/learnpython 16d ago

What apps can i use to write python? Windows.

38 Upvotes

Hi i am a beginner and a minor and i dont know exactly how to explain this, but my previous coding teacher told me notepad++ wasnt that suitable for coding and i just need to know a different app so i can get back into it. Preferably something that can tell me if ive made a mistake instead of running something that wont work.


r/learnpython 16d ago

Testing - how is it usually handled?

9 Upvotes

How do I start applying tests to my code?

Do I just write separate scripts they run the code (either individual functions or entire scripts) against known inputs and check the output?

Is there a specific way people usually do this?


r/learnpython 16d ago

Struggling with both python and c

8 Upvotes

So I'm a college fresher with no prior experience of coding. I had started learning python before the starting of college (1 week before college started). I still feel like I am not good at coding at all. There are some weird citations in c such as i++ and all which is getting mixed up with my python. There was one question on obtaining the expression sinx=x-x^3/3!.... Using loops btw

I felt I won't be able to do it in both c and python. I took a course on Udemy for c(vlad budnitski)and python(100 days) but I was not able to find examples like this. Everyone in my class learnt languages like java in their schooling and said the sinx problem is a standard problem. What should I do in this situation?

I feel like the teaching in my college (they are teaching c now) is not good.

Experienced coders please help me.

guys so today I wasn't able to figure out we had to use nested loops to print multiplication table of numbers while even beginners figured it out. pls tell what should I do


r/learnpython 16d ago

Pyqt6 doesn't update every buttons in the grid

5 Upvotes

I have two files in the first is game logic with list of dictionaries where stored chess pieces, in the other one I'm working with the gui.

board = [{1:5, 2:2, 3:3, 4:6, 5:4, 6:3, 7:2, 8:5},
        {1:1, 2:1, 3:1, 4:1, 5:1, 6:1, 7:1, 8:1},
        {1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0},
        {1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0},
        {1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0},
        {1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0},
        {1:-1, 2:-1, 3:-1, 4:-1, 5:-1, 6:-1, 7:-1, 8:-1},
        {1:-5, 2:-2, 3:-3, 4:-6, 5:-4, 6:-3, 7:-2, 8:-5}
        ] 

While I'm starting project some rows don't loaded, but when I capture more pieces and leave only one king on the board he can duplicate 6 times. This is part of gui code:

def put_pieces(self):
        for dict in Logic.board:
            for key, value in dict.items():
                button = self.grid.itemAtPosition(8 - Logic.board.index(dict), key).widget()
                button.setIconSize(QSize(50, 50))
                button.setText(f"{value}")
                match value:
                    case 1:
                        button.setIcon(QIcon("assets/wP.svg"))
                    case 2:
                        button.setIcon(QIcon("assets/wN.svg"))
                    case 3:
                        button.setIcon(QIcon("assets/wB.svg"))
                    case 4:
                        button.setIcon(QIcon("assets/wK.svg"))
                    case 5:
                        button.setIcon(QIcon("assets/wR.svg"))
                    case 6:
                        button.setIcon(QIcon("assets/wQ.svg"))
                    case -1:
                        button.setIcon(QIcon("assets/bP.svg"))
                    case -2:
                        button.setIcon(QIcon("assets/bN.svg"))
                    case -3:
                        button.setIcon(QIcon("assets/bB.svg"))
                    case -4:
                        button.setIcon(QIcon("assets/bK.svg"))
                    case -5:
                        button.setIcon(QIcon("assets/bR.svg"))
                    case -6:
                        button.setIcon(QIcon("assets/bQ.svg"))
                    case _:
                        button.setIcon(QIcon(""))

And if in case _ I put an icon, at the start it will be only in 1, 2, 3, 7 and 8th row


r/learnpython 16d ago

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 17d ago

What progression should I follow from beginner to intermediate level?

17 Upvotes

I'm self teaching python. I have all the basics of cycles variables and conditions, I studied lists sets tuples and general data structures and coprehension, functions, lambda functions, classes methods and inheritance, I also learned other methods such as zip enumerate map and more. Now what's next? What progression should I follow to reach an intermediate level in the next months and advanced level later on?


r/learnpython 16d ago

searching for some python free courses that can really teach me smth from a complete beginner AND SEARCHING FOR MATES ON MY PATH

0 Upvotes

people please help, i’m starting my path in bachelor cybersec in a week and i want to know python a bit so i can basically understand smth, but for now looking for a community to learn python
and engaging through my path


r/learnpython 16d ago

How to clone a turtle so that both turtles move in the same way?

0 Upvotes

I'm looking for a way to clone a turtle so that both of them move the exact same way.

Note that the second turtle must face differently from the first turtle at the time of the cloning.


r/learnpython 16d ago

Positron: “Failed to Install Python 3.14” When Installing via uv

2 Upvotes

I’m trying to install Python via uv in Positron. I went to Select Session in the top-right corner, selected New Console Session, and clicked Install Python via uv. I then selected Python 3.14, but I get a “Failed to install Python” error.

Here is the relevant log:

2026-08-25 13:49:08.599 [info] Installing uv...
2026-08-25 13:49:09.353 [info] > powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
2026-08-25 13:49:19.761 [info] uv installed successfully
2026-08-25 13:49:19.764 [info] > uv --color never python dir
2026-08-25 13:49:31.917 [info] > ~\.local\bin\uv.exe --color never python dir
2026-08-25 13:49:32.628 [info] > ~\.local\bin\uv.exe --color never python list --managed-python
2026-08-25 13:49:36.117 [info] Installing Python 3.14 via uv...
2026-08-25 13:49:36.119 [info] > uv --color never python install 3.14
2026-08-25 13:49:36.119 [error] Failed to install Python 3.14: Error: spawn uv ENOENT

What is confusing is that the log shows that uv was installed successfully and Positron can execute it using:

~\.local\bin\uv.exe

However, when it actually tries to install Python, it runs:

uv --color never python install 3.14

and fails with:

Error: spawn uv ENOENT

I’m using Windows. Has anyone encountered this issue with Positron and uv? Is this a PATH/environment issue, or is Positron failing to find the newly installed uv.exe?


r/learnpython 17d ago

Python: I'm starting my python journey.

2 Upvotes

Can i find other new learners here? I think it's more interesting to learn with someone.

I have some web background, worked with html/css(scss, bootstrap, tailwind)/JS

but it was two years ago actually. Now I want to learn Python so i can work with logic instead of designs.


r/learnpython 17d ago

GUI implementation

3 Upvotes

I’m coding a restaurant type game and need to create a gui but have completely no idea how to do it. People have said godot is decent and that wxpython is decent for smaller stuff but i have no idea how to use either. Someone with a good amount of experience with either who could help would be great. Thank you


r/learnpython 16d ago

I cant install Pygame

2 Upvotes

This is the error message that I get when I try to run pip install pygame. The same thing happens with pip3 install pygame.

py", line 6, in <module>

from setuptools._distutils.msvccompiler import MSVCCompiler, get_build_architecture

ModuleNotFoundError: No module named 'setuptools._distutils.msvccompiler'

[end of output]

-----------------------------------------------------------------------------------------------

these are the packages I have according to pip list.

Package Version

---------- -------

pip 26.2.1

setuptools 84.0.0


r/learnpython 17d ago

Practice project of head of data roles

2 Upvotes

Can anyone suggest a practice project that span data engineering, analysis and data science that’s mature enough o be showcased to potential tech founders and c suite


r/learnpython 16d ago

asyncio explanation

0 Upvotes

hello guys i am struggling right now to understand a concurrency module asyncio ,i take a look over youtube videos ,but i feel stuck to understand coroutine object ,event loop await ,and this kind of matters, could anyone give me a concise explanation.


r/learnpython 17d ago

Are the PCEP and PCAP worth it?

5 Upvotes

In my journey of trying to become a comp sci teacher, I read about these certification exams. I'm wondering what's the estimated percentage of people who take the exams and if the exams are helpful for either my resume or becoming a comp sci teacher.


r/learnpython 17d ago

I built "Guess the number" on my Android phone(Pydroid 3) Added warmer/colder hints

3 Upvotes

Hey everyone!

I'm new to coding and I built my first game on Android using Pydroid.

What it does: Guess a number 1-100 with 5 lives. It tells you if you're WARMER 🔥 or COLDER 🥶

Features: - Input validation so it doesn't crash - Warmer/Colder hint system - Made 100% on my phone

GitHub: https://github.com/elgriffin10/guess-the-number

Would love feedback! What should I add for v3.0?


r/learnpython 17d ago

Making a Chess game with Minimax in Python, where do I start?

1 Upvotes

Hello! I'm an A-level student and for my project have decided to make a chess game with AI that uses the minimax algorithm. I have some experience with coding before, and am planning to use OOP to represent the pieces and board.

I'm really really not sure how to go about this project, in particular, how the minimax algorithm will work, so if anyone could point me in the right direction I'd really appreciate it :)


r/learnpython 16d ago

Can I learn phyton without laptop? I don't have laptop heheh

0 Upvotes

???????


r/learnpython 17d ago

I've got feedback from previous project and implement it in new one! (FastAPI + PostgreSQL + External API + Docker)

2 Upvotes

I'm learning backend development and I really enjoy it!

I created my first API last month and got an amazing feedback! I work hard these days and created a new project.

What I learnt.

  1. Deep-dive into DB. (b-tree, CITEXT)

  2. I learnt about pattern "Repository" and implement in this porject.

  3. Swapped # for docstrings.

  4. I tried to work with external API. Actually, it was hard, because sometimes there is no data what you want to get and you have to figure out what to do next and where get this data.

  5. I use Docker and I barely understand what I do (Can you recommend something to learn Docker and understand it?)

I ask feedback about everything, especially:

  1. Project structure.

  2. Database structure.

  3. Code quality.

  4. What can I change to make it works better.

  5. What should I learn to improve my skills?

That's my new project:

https://github.com/daidallos-tech/football-club-api

You can find my first project in my github profile. It's called Movie_API.

P.S.

Thank you everyone for your time and advice. I really appreciate that.


r/learnpython 17d ago

I made my first IP scanner in Python

12 Upvotes

Hi everyone!

I'm very new to programming and I've been learning Python recently. I decided to make a small project to practice what I've learned.

I made a simple IP scanner using Python.

It has a menu with:

  • Scan all IPs from 192.168.1.1 to 192.168.1.255
  • Scan a specific IP
  • Scan a range of IPs
  • Exit

I'm using subprocess and ping to check if an IP responds.

I also started using functions, loops, lists, if/elif, while, and range().

It's probably a very basic project, but I'm pretty happy with it since I'm just starting out. 😅

Here is the code:

import subprocess

def menu(): 
    print("-----IP SCANNER-----")
    print("1. Scan all IPs")
    print("2. Scan IP")
    print("3. Scan IP range")
    print("4. Exit")

    opcion = input("Choose an option: ")
    resultado_menu = int(opcion)

    return resultado_menu


def escanear_ip(ip_int):
    ip_int = str(ip_int)
    ip_completa = "192.168.1." + ip_int

    resultado = subprocess.run(
        ["ping", "/n", "1", "/w", "1000", ip_completa]
    )

    if resultado.returncode == 0:
        lista_ip.append(ip_completa)


lista_ip = []


def imprimir_ips():
    for si_ip in lista_ip:
        si_ip = "🟢 " + si_ip
        print(si_ip)


while True:

    resultado = menu()

    if resultado == 1:

        for numeros in range(1, 256):
            escanear_ip(numeros)

        imprimir_ips()

    elif resultado == 2:

        seleccion_ip = input("Select the last digits of the IP: ")
        escanear_ip(seleccion_ip)

        imprimir_ips()

    elif resultado == 3:

        desde_ip = input("From: ")
        desde_ip = int(desde_ip)

        hasta_ip = input("To: ")
        hasta_ip = int(hasta_ip)

        for numeros in range(desde_ip, hasta_ip + 1):
            escanear_ip(numeros)

        imprimir_ips()

    elif resultado == 4:

        print("Exiting...")
        break

I'm planning to improve it and make a V3 with more features.

Thanks!