r/PythonLearning • • Sep 24 '26

Small Python exercise I did today. I’m still working on conditions and logical operators. Any advice to improve my code?

Thumbnail
gallery
50 Upvotes

r/PythonLearning • • Sep 14 '26

What a fun project 😍 Python meets Blender!

Thumbnail
gallery
50 Upvotes

Really excited to share this project!

I wrote a planetary gravity simulation in Python and managed to bring it to life by visualizing it directly in Blender (as you can see in the first screenshot with the script and the planet ready to go!).

It’s still a bit rough around the edges, which you'll see in an upcoming video I'll be posting that shows the very first render of this planet in action. Currently, it's technically a 2D simulation running inside a 3D workspace.

Because of this, you theoretically have to look straight down from the Z-axis at a perfect 90-degree angle to view it properly.

I've also attached a couple of diagrams plotting the simulation data to this post so you can see the math behind it.

If you want to play around with it yourself, you can find all the files here:

GoogleDrive_SimData

(The link includes the Python console script, the .json file with the initial starting conditions, and a .csv containing the complete simulation data. I've also packed everything into a single ZIP file for anyone who prefers not to download them individually.)

Have fun with it! 😉


r/PythonLearning • • Sep 07 '26

I want to learn how to program in python

50 Upvotes

What do you recommend to me so that it is as intuitive as possible and that it doesn’t make me want to leave it after two days.

Thank u.


r/PythonLearning • • Apr 29 '26

Python beginners

50 Upvotes

Hello!

If you are a beginner or just starting out learning Python for the first time and want to connect with people with the same goal, reach out!

Most of us are using CS50P and freecodecamp from YouTube.

And we update daily.


r/PythonLearning • • Mar 11 '26

Discussion Which One Do You Feel Is Easier? A Or B

Post image
50 Upvotes

Write a program to print multiplication table of n using for loops in reversed

order.


r/PythonLearning • • Feb 26 '26

Discussion Porn in Conda directory

50 Upvotes

Okay, I am flustered here. Today, at work, I attempted to open up YouTube from within the Microsoft search menu. To my shock and horror, the first suggested app was “Youporn.” I don’t watch porn on my work pc.

I looked at the file location and lo and behold, it’s a MS-DOS application file found within Anaconda3\\pkgs\\protego\\info\\test\\tests\\test_data

WTF?!

Anyone familiar with the Protego library? What is going on here? I can only imagine if my IT administrator or boss saw this pop up on my windows search.


r/PythonLearning • • Oct 29 '25

Help Request This is probably a stupid question but I need help.

Thumbnail
gallery
50 Upvotes

Im 13 and im only 8 minutes into a python tutorial but it’s not working and I can’t for the life of me figure out what I did wrong. I’ve tried a few things but it doesn’t seem to work, it says python wasn’t found but I have it installed. I tried messing around with the shortcuts because it says to disable something there but I don’t know what I’m doing and it’s not working. Can someone tell me what to do?


r/PythonLearning • • Oct 03 '25

Is there a better way? These print statements are too long.

Post image
50 Upvotes

r/PythonLearning • • Sep 07 '25

Python Book 2025

Post image
50 Upvotes

Effective Python - Brett Slatkin

The Python book I'm starting this month has received quite good reviews, and I'll be sharing the documents and important concepts I'll be working on with it on GitHub or in PDF format.


r/PythonLearning • • Jun 22 '25

Help Request Running functions

Post image
50 Upvotes

I'm trying to grasp the concept of def function and i don't know why here in the example when running the code after calling the "main()" it gives : main: 1 [0, 1, 2, 3] update: 2 [0, 1, 2, 3, 4] main: 1 [0, 1, 2, 3, 4] My question is why "n" in "main" still equal 1 and not the update?


r/PythonLearning • • Jan 15 '25

Beginner not sure why input is skipped

Post image
50 Upvotes

Im trying to undertake an excersize on freecodecamp which wants my to form a loop to repeat everytime a numerical value has been inputted and end when the user types done.

I have no idea of my code is going to work nor can I test it because it blows up at line 10 because theres no input. However the code seems to skip the input as I am not prompted to input something.

What seems to be the problem? I cant wrap my head around it. Ive used input many times and haven’t ran into this issue before.


r/PythonLearning • • Aug 29 '26

Day 3

Post image
49 Upvotes

i wrote a code which takes your name and age in py but i need help on this one cuz in the age part it is giving me some sort of error which i couldn't understand even by using gpt well he gave me a code but i wanted logic behind how and what i did wrong


r/PythonLearning • • Mar 22 '26

Showcase Generating the Barnsley Fern fractal at speed with numpy

Post image
49 Upvotes

r/PythonLearning • • Oct 23 '25

Python Mutability

Post image
49 Upvotes

An exercise to help build the right mental model for Python data. The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening:


r/PythonLearning • • Sep 26 '25

Python Data Model Exercise

Post image
49 Upvotes

An exercise to help get the right mental model to think about Python data.


r/PythonLearning • • Aug 17 '25

What's wrong

Post image
49 Upvotes

r/PythonLearning • • Mar 10 '25

Day 4 : simple calculator

Post image
49 Upvotes

Anyone else who is learning python? Let's connect 😁


r/PythonLearning • • Jun 11 '26

Showcase Day 5 Python Learning

Thumbnail
gallery
48 Upvotes

- list:

In we can use .append(item) to add any item in the end of the list,

Use .remove(item) to remove

Use len() to check length there is more

Note: list remain in order and changeable

- and for loop in list

Note better to practice more for loop so our mind can become comfortable with iteration

#python #coding #ai


r/PythonLearning • • Apr 26 '26

very basic

Post image
48 Upvotes

r/PythonLearning • • Aug 24 '25

Discussion Lets start coding together

48 Upvotes

I’ve been teaching Python since 2020 for both kids and adults. I’m thinking of starting a Telegram or WhatsApp group where we can all join, share ideas, and help each other out


r/PythonLearning • • Jun 29 '25

Help Request Helpp

Post image
48 Upvotes

Help me to solve this pattern guysss 😭


r/PythonLearning • • May 06 '25

Are there any ACTUAL beginner resources to learn Python?

48 Upvotes

I swear, everything I've used so far is almost no help. They all go from "print("Hello World!")" to NOW BUILD A PROGRAM THAT CURES CANCER AND WILL ALLOW HUMANS TO MASTER SPACE TRAVEL.

But seriously, I took a Quick Start Python (beginner) course on LabEx and it just got ridiculously difficult out of nowhere. Is there ANYTHING that actually continues at a TRUE beginners pace and doesn't expect you to have a photographic AI-esque memory that allows you to remember literally every single piece of information discussed?


r/PythonLearning • • Apr 27 '25

Calculator Program

Post image
48 Upvotes

Hello, I am still learning Python, but created this simple calculator program. Please give me some tips and tricks on how I can improve, and please give me any feedback on the design of this.


r/PythonLearning • • Jul 18 '26

<python code>

Post image
47 Upvotes

This is python code to get student salary!