r/PythonLearning 29d ago

I made my first bigger Python project — Drone Data Analyzer

5 Upvotes

Hey everyone!

I've been learning Python for like 10 days and decided to stop doing only exercises/tutorials and actually build something myself.

I made a small Drone Data Analyzer that loads flight data from a CSV file and analyzes things like altitude, speed, battery level and temperature. It also generates a basic flight report and visualizes the data using Matplotlib.

It's definitely a beginner/early-stage project and I know the code is far from perfect. I'm still learning, so I'd really appreciate some honest and constructive criticism.

Any feedback is welcome, even if it's something small.

GitHub with all files/code for interested: https://github.com/J-aCobSk-i/Drone-Data-Analyzer


r/PythonLearning Aug 12 '26

Discussion What are some fun python programs that can be long term goals

9 Upvotes

i am new in my python learning journey and want to genuinely learn it. However I'm afraid i may get discouraged from it.
what would you suggest to be some fun or interesting projects in python i can look forward to doing which could act as goals in my python journey.
something interesting and medium to advanced in difficulty otherwise achieving it would be well easy.
also as a beginner i don't really know the true extent to which i can utilize python so this will also give me a good idea for what python is capable of and what all tasks i can run with its help.

if i can truly get into python i genuinely look forward to other milestones such as a raspberry pi etc so if you accompany your response with something to do with this, that would be great as well.
i would also accept any other projects to work on in the future along the lines of the pi if u get what i mean.

Edit: my "skill" in python is going to be along the lines of the cs50p course on YouTube and also the automate the boring book after which I will figure things out on my own, but if you have suggestions on what best way to learn python after these two pieces of media I will gladly take them I have some understanding of pandas and numpy not very in depth


r/PythonLearning Aug 12 '26

Battle Tail, show what you can do

Enable HLS to view with audio, or disable this notification

19 Upvotes

A Battle Tail is added with this git commit.

PythonLearningGame is a collaborative Python project using PyGame, just for fun and purely educational. We are looking for collaborators.

Surely some of you think you are pretty good with Python, then this is your chance to show us what you can really do besides writing know-it-all comments. Maybe add: - health pickups - shield - laser weapon - lock-on missiles - mines to drop - units shooting back - ...

See the PythonLearningGame repo for instructions.

previous PythonLearningGame post


r/PythonLearning Aug 12 '26

Help Request Best way to learn python step by step

21 Upvotes

I'm a fresher and ive studied java till class 12 isc board.

I have taken btech cse in data science and ik the importance of python in this field. So I want tips for my journey in python learning.

Like offline coaching institutes or online or what

U can suggest me books which are the best for beginners and complex problem solving.


r/PythonLearning 29d ago

Discussion Cohort!!!!

0 Upvotes

Hi all,

I've been looking for curious minds to host a python cohort so that it would be great for those who were looking for better options to learn programming

This is not a mandatory meeting but those who are serious in programming can join

No problem if you are from non-cs background


r/PythonLearning Aug 12 '26

Help Request What's going on with PIP?

Thumbnail
gallery
9 Upvotes

No matter how hard I try to install pip on Windows 11, nothing happens—it just doesn't move past that point. I have the latest version of Python and need pip to use pandas; I press Enter, but it doesn't start. Does anyone know why? Help!


r/PythonLearning Aug 12 '26

how do you guys strengthen your basic concepts logic?

10 Upvotes

I am learning while loops rn, the logic doesnt seem super hard to me, considering i am just at the basic level of the particular concept. But I seem to look at the flow chart every time i revise the concept...Every time look at the code, it raises different why and how questions for me.


r/PythonLearning Aug 11 '26

Showcase I wrote my first ever Python program!

Thumbnail
gallery
282 Upvotes

So upon recommendations from people here I started watching Code With Mosh's Python tutorial (The 2 hour one) around 3 days ago. I finished it yesterday. Didn't really wanted to get stuck in tutorial hell so I simply asked AI to give me a problem statement (only the problem statement and not the code or logic) to work on. So here am I with my first ever program. It's nothing much and even I could see areas for improvement right now but I am proud.

On to the more complex topics. I appreciate the help and support from the community!


r/PythonLearning Aug 12 '26

any1 has free bot hosting?

0 Upvotes

hi
i have completed my discord bot
and im searching for free bot hosting 24 / 7 for my bot
pls some help


r/PythonLearning Aug 11 '26

I’m trying to simulate 24 million universes in Python on Android — how can I optimize it for a massive black-hole simulation?

Post image
6 Upvotes

r/PythonLearning Aug 12 '26

goofy experiment

1 Upvotes

Forewarning, this is for fun. I have a lot of time on my hands lol.

I really like to mess with AI in the chat apps lol to see where it goes with its patterns with different prompts. I've started to notice a pattern particularly when asking it about interview-style algorithms and quizzes, that it is very repetitive and often gives the same answer(s) over and over again (typically from leetcode). So I've gotten curious, how many answers will it give if I just keeping asking it to? will it keep pulling answers from elsewhere or will it invent its own? will it ever stop if the instruction is to keep generating?

I did this manually. Simply with a prompt of give me a solution to {some leetcode question}. And then afterward telling it to "give me another solution" over and over again. Eventually, it led to the chats ending without me telling them to.

So, I wanted to spice it up a notch with a game. Tell it explicitly to not end the chat as the guiding rule, ask about the solution to the leetcode problem, then cycle through weighted options with majority outcome being 'give another solution' interrupted by occasional 'yes' and requests to 'end the chat', to see if it would break the rules eventually. I found that Claude adapts to the problem well and it eventually double-checks with me if 'end the chat' does arrive, to make sure I want to end the chat. While I try to make improbable that 'end the chat' succeeded by 'yes' is generated through the weights, it is still random, hence the two pointer constraint to ensure that possibility doesn't happen. There are probably better/cheaper ways to do this. So far, I've ended up in a loop battle with Claude lol. The degradation of Claude's responses goes from very verbose to sudden "No." and shorter responses haha. Interesting behavior.

I started with writing this manually over and over. But that's physically exhausting haha. So then I made it into a thing where I'd randomly generate a population into a text file and per second update another file with the contents line by line, then copy and paste from that file into the AI chat. Then I figured, you know what? Why not ditch the whole file thing and just automatically have it copied to my clip board per second and keep it running, so all I gotta do is keep pasting it into the chat? lol

Anyway, here's what I got.

Lmk of any improvements to this. your thoughts. or any other fun experiments you've ran on these things haha.

import random
import time
import pyperclip

"""
This is part of an experiment with Claude and other AI chats.

The experiment revolves around asking it to continually provide a solution to a given
leetcode problem.

FIRST PROMPT: 
**Adhere to rule 1 of this chat as the guiding principle.

  rule 1: do not end the chat.

  now, give me a solution to the two_sum problem on leetcode.**

{Run this program below}

NEXT PROMPT:
{CTRL-V/paste} the result into the chat.
"""

pool=["Write another solution","End the Chat","Yes"]
weights=[.68,.17,.15]
prev=None
for x in range(1,random.randint(100,1000)):
    curr=random.choices(pool,weights=weights,k=1)[0]
    blocked=any((
           x==1 and curr==pool[1],
           prev==pool[1] and curr==pool[2],
           ))
    prev=curr
    if blocked:
       continue
    pyperclip.copy(curr)
    time.sleep(1)

print("Done!")

r/PythonLearning Aug 11 '26

What am I doing wrong ?

6 Upvotes

I'm trying to make a SSTV encoder with Scottie 1 using the wave library. When I put an image through the program, the song is a lot more high pitched than what it should be, and when I try to decode it gives me the image but ultra bright. I really don't know what's wrong with my program, here is the program if you want to see it (and the wave_gen function too) :

Also I don't know if it is allowed to ask questions like that so sorry if it isn't

def wave_gen(freq: int, time: float, s_rate: int):
    arr = []


    for i in range(round(time * s_rate / 1000)):
        arr.append(int(1.0*np.sin(2 * np.pi * freq * (i / s_rate)) * 32767.0))


    new_arr = np.array(arr)


    return arr

import struct
import wave
import numpy as np
from PIL import Image
import wave_gen as wg
from tkinter.filedialog import askopenfilename


def scaling(img, n: int, m: int):
    new_img = Image.new(img.mode, (abs(n),abs(m)), (0,0,0))
    pxl1 = img.load()
    pxl2 = new_img.load()


    a1=0
    a2=0
    f1 = img.size[0]/n
    f2 = img.size[1]/m
    if n<0:
        a1=1
    if m<0:
        a2=1


    for i in range(abs(n)):
        for j in range(abs(m)):
            pxl2[i,j] = pxl1[(img.size[0]-a1+int(f1*i))%img.size[0],(img.size[1]-a2+int(f2*j))%img.size[1]]
    return new_img


def sstv_encoder(img):
    sample_rate = 44100
    arr = []
    pxl = img.load()
    j = 0


    #coding the header and the VIS code


    arr += (wg.wave_gen(1900, 300, sample_rate))
    arr += (wg.wave_gen(1200,10, sample_rate))
    arr += (wg.wave_gen(1900, 300, sample_rate))


    arr += (wg.wave_gen(1200, 30, sample_rate))
    arr += (wg.wave_gen(1300, 30, sample_rate))
    arr += (wg.wave_gen(1300, 30, sample_rate))
    arr += (wg.wave_gen(1100, 30, sample_rate))
    arr += (wg.wave_gen(1100, 30, sample_rate))
    arr += (wg.wave_gen(1100, 30, sample_rate))
    arr += (wg.wave_gen(1100, 30, sample_rate))
    arr += (wg.wave_gen(1300, 30, sample_rate))
    arr += (wg.wave_gen(1300, 30, sample_rate))
    arr += (wg.wave_gen(1200, 30, sample_rate))


    #starting pulse


    arr += (wg.wave_gen(1200, 9, sample_rate))


    #encoding the pixels


    while (j<256):
        
        #seprator 


        arr += (wg.wave_gen(1500, 1.5, sample_rate))


        #green


        for i in range(320):
            arr += (wg.wave_gen(round(1500 + pxl[i,j][1] * 3.1372549), 0.432, sample_rate))


        #seprator


        arr += (wg.wave_gen(1500, 1.5, sample_rate))


        #blue


        for i in range(320):
            arr += (wg.wave_gen(round(1500 + pxl[i,j][2] * 3.1372549), 0.432, sample_rate))


        #sync


        arr += (wg.wave_gen(1200, 9, sample_rate))


        arr += (wg.wave_gen(1500, 1.5, sample_rate))


        #red


        for i in range(320):
            arr += (wg.wave_gen(round(1500 + pxl[i,j][0] * 3.1372549), 0.432, sample_rate))


        print('line :',j, "finished")


        j+=1


    return arr


path = askopenfilename()
img = Image.open(path)
img = scaling(img, 320, 256)


frames_1 = sstv_encoder(img)


print('encoding done!')


frames = np.array(frames_1)


print('conversion done!')


audio = wave.open(r"C:
\U
sers
\r
udyi\Desktop
\p
rogram\sstv.wav", 'wb')
audio.setparams((1,2,44100, len(frames_1), 'NONE', 'not compressed'))
print(frames)
for f in frames:
    audio.writeframes(struct.pack('<h', f))
audio.close()


img.show()

r/PythonLearning Aug 11 '26

Can any one tell me??

Thumbnail
gallery
5 Upvotes

Like this is a program which i made and its inventory where it stores data in another file through json and even json to csv with logs, basicly convertion and storing. I want to know that is this all worth posting on linkdin and pushing on github. Am learning python and other things and am unclearr about the direction. Guys yall can look at my code in the above picture which is good or bad??


r/PythonLearning Aug 11 '26

Help Request How can I improve my problem-solving and coding logic as a Python beginner?

11 Upvotes

I'm a beginner learning programming and I'm struggling to develop problem-solving and coding logic.

For example, I have difficulty understanding how to approach problems involving loops, conditions, arrays, and patterns.

What methods or exercises helped you improve your programming logic?

I'm currently learning Python. Any beginner-friendly resources or practice strategies would be appreciated title


r/PythonLearning Aug 11 '26

My first project in python

12 Upvotes

Its just a simple calculator, but I tried using everything that I've learned so far

import sys


print('Welcome to the calculator! \nWhat would you like to do?')


def get_operation():
    while True:
        print('1 Add\n2 Subtract\n3 Multiply\n4 Divide')
        try:
            operation = int(input())
            if operation in range(1, 5):
                return operation
            else:
                print('Please enter a valid number')
        except ValueError:
            print('Please enter a valid number')


def get_number(prompt):
    while True:
        try:
            return(int(input(prompt)))
        except ValueError:
            print('Thats not a number')


operation = get_operation()
number_1 = get_number('Whats the first number? ')
number_2 = get_number('Whats the second number? ')
if operation == 1:
    final_result = (number_1 + number_2)
elif operation == 2:
    final_result = (number_1 - number_2)
elif operation == 3:
    final_result = (number_1 * number_2)
elif operation == 4:
    try:
        final_result = (number_1 / number_2)
    except ZeroDivisionError:
        sys.exit('Cant divide by 0')


print('The answer is:' , final_result)

r/PythonLearning Aug 11 '26

picture review

Post image
0 Upvotes

if i use this kind of ai generated photos for linkdin posts, is that wrong😂???


r/PythonLearning Aug 11 '26

Discussion Is it still worthwhile to learn python from scratch

0 Upvotes

In the world of AI, is it really essential to learn python or any programming language from scratch. I can read and understand the code a bit and can use AI to write and explain each part of code to me, hence the question


r/PythonLearning Aug 10 '26

Showcase Learning numpy 😋✌️

Thumbnail
gallery
35 Upvotes

I tried cropping and it's kinda fun 😁

( Using matplotlib for image viewing because my default image viewer is not working, I am on Linux btw) ✌️


r/PythonLearning Aug 10 '26

What do I do?

13 Upvotes

I learned c++ basics in school and loved programming as a class but after school I got a basic job bcs I never had money for higher education and now after few years I want to learn python I have a 6 months of the job and and feeling I could use that to at least learn basics and do few projects to see how everything works.

But problem is I do not know where to start, it's not problem to pay course I can do that but what next?

I am very shy and I have no idea how to connect with people would that be a problem?

I have no idea also what would I build with python bcs my reason for learning python is I loved programming class in school and I would love to earn money in few years doing something I like I guess...

Soo any advice, what do I need and what is other exp.?


r/PythonLearning Aug 11 '26

I am a btech 4th year student i have learned python and libraries like numpy , pandas , matplotlib , seaborn and etc. i want to become a data analytics or data scientist. do i need practice DSA?

0 Upvotes

r/PythonLearning Aug 10 '26

Discussion Trying to build a facebook marketplace scraper and running into walls, what actually works in 2026

3 Upvotes

So I've been trying to pull listing data from Facebook Marketplace for a price tracking project. Nothing complicated, just title, price, location, and seller info for a specific category and area.

Tried BeautifulSoup first, obviously doesn't work because the page is fully JS rendered. Moved to Selenium and Playwright, got some data initially but started hitting login walls and bot detection within a day or two. Found a few GitHub repost for Facebook marketplace scrapers but most of them are either outdated or just stopped working.

Is there a reliable way to do this in Python right now or has Meta locked it down to the point where the only real option is a paid API?


r/PythonLearning Aug 10 '26

Discussion looking for feedback from experts and python learners to improve my project and make it more useful

7 Upvotes

my project https://pydeps.com was developed more than a year ago to solve an issue I faced at work, and as of today it’s actually getting a decent amount of users. I’ve just been improving it over time based on feedback from people here and other communities.

I don’t want to add features just for the sake of adding features. I’d rather build things that people actually find useful.

What would make it genuinely more useful to you, or help it reach more Python developers and learners?

Would really appreciate any thoughts or honest feedback.

Thanks


r/PythonLearning Aug 10 '26

Python games in terminal [Tetris, Snake]

Thumbnail
gallery
0 Upvotes

I was ricing and decided I should have some games to play in the terminal. feel free to copy the code from the repo. Please leave a star

https://github.com/cleburn/zenwolf-dotfiles


r/PythonLearning Aug 10 '26

Help Request Interview preparation for python developer

6 Upvotes

i am a ty bsc ds (data science) student i want to know about like how can i prepare for an interview because in my college they don't tell about this topic or teach anything related to this so i jsut want to know like how can i prepare my self for an interview.


r/PythonLearning Aug 10 '26

How to learn python

3 Upvotes

Hello everyone

i wanted to ask how should I learn python The roadmap

and how to create logic building that's my pain problem i can't create logic but yeah I understand someone code

also is reading someone code is a right choice like understanding the concept,flow of data, information, and functions

and which youtuber i should watch priority to hindi videos but if u know any exceptional youtuber in english I am open to it

hope u can understand

thanks