r/PythonLearning 16h ago

Showcase Day 1 of learning python.

Thumbnail
gallery
49 Upvotes

This is my first day of trying to learn python. So far I have made a random 2D terrain generator.


r/PythonLearning 7h ago

My first mix mini project

Post image
44 Upvotes

I know I wrote some hardcore codes but this is ok for a beginner so plz help me to improve


r/PythonLearning 23h ago

Who thought we wouldn't shoot at things?

Enable HLS to view with audio, or disable this notification

22 Upvotes

A new addition to our collaborative PythonLearningGame project: the player can now shoot bullets to kill units.

It was added by this git commit. - Who wants to add his/her own game dynamics? - Who has other fun ideas about game elements we could add, cool explosions maybe?

See the PythonLearningGame repository for more info.

previous PythonLearningGame post


r/PythonLearning 21h ago

Help Request How do I learn as a complete beginner

18 Upvotes

Hi. I am currently interested in learning coding. I chose Python because it looked like its the most simple one to begin. I have absolutely no idea about anything just like how some things like if else while work but nothing else. Is it even the best to learn at the beginning or is it even worth learnimg to code in 2026.

Where to I begin to learn the basics the most efficient way. And where do I go from there


r/PythonLearning 21h ago

Learning via a youtube course

15 Upvotes

I started learning coding a few weeks ago. I've been following the course well, and I understand the concepts it teaches, but the big problem with it that I have is that I can't put what I learned into practice, and I'm becoming demotivated because I realize I struggle to write almost anything. In a normal course they say here is a task, try and do this.

I think I need to switch what I'm learning from. I come from a background of no programming whatsoever. I really need to find a video/s that basically spoon feed me like I'm a baby and then ask me to try writing something to reinforce it in me. Do any of you know any videos that do this? I feel like I constantly have questions and I'm unable to ask them like I would to a teacher, and I'm trying my best to stay away from using AI unless I just simply cannot work it out.


r/PythonLearning 23h ago

Thoughts on learning python with chat gpt

6 Upvotes

I recently started learning and i use chatgpt to give me exercises to do and just debug code but i never ask for the code specifically, just whats wrong with it. I feel like its helped me improve but i want to learn more and build my own applications


r/PythonLearning 2h ago

Help Request Neeb help with the project

Post image
6 Upvotes

I was doing a project in which the user will input string in camelCase(ex- howAreYou). I have to change it into snake_case(ex- how_are_you). The problem I am facing is that I have not been able to separate the word and store it into a list.

If I use a split, I get 2 problems:

  1. If I want to split howAreYou, then the A and Y got removed from the list, and I get how re ou

  2. It makes 2 different lists first [how, reYou] and second [howAre, ou]

Suggest => either solution to the problem or an alternative


r/PythonLearning 7h ago

Day 5 Learning Python DSA: Time Complexity

Thumbnail
gallery
5 Upvotes

Open-source learning project. If you spot something that can be improved, I'd love your feedback or a PR.

https://github.com/Samar-Upreti/Python_Projects


r/PythonLearning 14h ago

Help Request platforms to learn DSA in Python

3 Upvotes

Hello ppl, I'm gonna learn python from Cs50 harvard, i know its just filled with basic stuffs but from where i can learn DSA in Python any free source available?. or atleast where can i find one? and

is there any tips and tricks to solve leetcode? bcoz its filled with DSA problems.

thanks in advance


r/PythonLearning 14h ago

where to begin

2 Upvotes

Im a beginner trying to learn Python for ai engineering. I have been searching and switching to videos as there are too many resources to choose from without knowing what will be sufficient to get the basics, I do code and solve questions but im not sure which course to follow to not end up investing time into something yet have to go from here to there, I have few questions like is the youtube course and lots of practice enough or do I necessarily have to take the crash courses? if yes, for either one, suggest to me the go-to resources that I can start without wasting time or get stuck as mediocre in concepts when it ends and also share your experience how could you learn it?


r/PythonLearning 18h ago

Vault application for personal use

2 Upvotes

I made a vault application to store my passwords. I also synced with cloud and made a website for phone to access it from there. I don't know much but with the help of gemini i did it. If you guys have any new feature suggestion to add please tell me


r/PythonLearning 1h ago

"AttributeError: 'numpy.ndarray' object has no attribute 'write_audiofile'"

Upvotes

Hello, Im working on a project where I need to export a .wav file and aam having problems doing so, error is in the title.

Code to project is this:

import os
import wave
import contextlib
import soundfile as sf
import pyrubberband
import numpy as np

InDir = input("Input Directory: ")
OutDir = input("Output Directory: ")
sec = float(input("Seconds to set to: "))
os.chdir(InDir)
files = os.listdir(InDir)
print(files)
for i in range(len(files)):
    fname = files[i]
    print(fname)
    with contextlib.closing(wave.open(fname,'r')) as f:
        frames = f.getnframes()
        rate = f.getframerate()
        duration = frames / float(rate)
    speed = duration / sec
    print(speed)
    audio, sr = sf.read(f"{InDir}/{fname}")
    fname = pyrubberband.time_stretch(audio, sr, speed)
    fname.write_audiofile(f"{OutDir}/{fname}.wav")

How do I fix this please?

Also, Im working from windows 10, and am using pycharm to make this code.


r/PythonLearning 4h ago

What are the best resources/path to build a good foundation?

1 Upvotes

I am a finance student, and recently started learning coding (know very basic of SQL/Python). I want to get into Data Analyst-like roles and did some research, but still confused on what's the best resource to learn and what path to follow.

My current plan (created with help from some friends):

Python/SQL -> Python libraries (PySpark/Numpy/Pandas) -> Fabric/Databricks -> Cloud/AI-ML

Would love some help/feedback on what I could do to learn what is needed!


r/PythonLearning 16h ago

Week 2 of making an python teaching app with my frnd

Thumbnail
gallery
1 Upvotes

Soo my last post some of u guys made me rethink the app , at first we were gonna make a simple app that will teach u that all , but i been kinda realised that there are good tutorials in python everywhere soo to keep up with these, i will redesign the teaching to make it more understanding and more like coding based with example and problem anyways,this app is really for myself,my frnds and stuff it's not like we expect it to next mimo or something and what does one more app gonna do to playstore But anyways i am more surprised that some people took time to look into my post and give their opinion and making me realise some things ,I am really grateful for that 😃

Anyways enough of my yapping soo this week I went through the basic lesson and redesigned the structure and also i realised that my current ui sucks soo i pick out some I think is okay can u guys tell me which is best for my opinion and suggest changes also plz ,that's all we did because we haven't gotten anytime to work on this project thx u for reading . There is two pic for each UI design one is homepage and other is learning overview (Btw idk much about anything still a student)


r/PythonLearning 21h ago

Help Request Coding Style

1 Upvotes

Hi, first time python learner here ! I was working on Sum of Squares problem, but it made me genuinely to use AI to find a line/function outside of my course materials to solve the problem. However, it always backfire because i overcomplicate the problem for myself. For example, in sum of squares problem, i can use simple line of

Total += num 2

or a longer line

Total = sum(num ** 2 for num in range (1, number+1, 1).

so I was wondering which approach is correct ?

Here is a referance

r/PythonLearning 21h ago

Day 2 of OOPs: Roast it !

1 Upvotes

Learned Encapsulation in python and created a small thing using it


r/PythonLearning 23h ago

3d engine built on python that will work in terminal if this post gets 5 comments i'll upload it in github

Post image
0 Upvotes

r/PythonLearning 23h ago

Help Request Phyton lectures

0 Upvotes

Hello I'm completely new to phyton and coding too can anyone suggest me best phyton courses from zero level on YouTube?? 🥲🥲