r/PythonLearning • u/Hour_Function673 • Sep 24 '26
Small Python exercise I did today. I’m still working on conditions and logical operators. Any advice to improve my code?
r/PythonLearning • u/Hour_Function673 • Sep 24 '26
r/PythonLearning • u/InkAndFormArt • Sep 14 '26
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:
(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 • u/whoissdaniels • Sep 07 '26
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 • u/RollExpert8192 • Apr 29 '26
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 • u/biharinaruto • Mar 11 '26
Write a program to print multiplication table of n using for loops in reversed
order.
r/PythonLearning • u/[deleted] • Feb 26 '26
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 • u/Beginning_Cancel_798 • Oct 29 '25
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 • u/Feeling_Midnight_30 • Oct 03 '25
r/PythonLearning • u/[deleted] • Sep 07 '25
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 • u/SilentAd217 • Jun 22 '25
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 • u/SkizzyBeanZ • Jan 15 '25
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 • u/NecessaryFalse1212 • Aug 29 '26
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 • u/futura-bold • Mar 22 '26
r/PythonLearning • u/Sea-Ad7805 • Oct 23 '25
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 • u/Sea-Ad7805 • Sep 26 '25
An exercise to help get the right mental model to think about Python data.
r/PythonLearning • u/Inevitable-Math14 • Mar 10 '25
Anyone else who is learning python? Let's connect 😁
r/PythonLearning • u/aashish_soni5 • Jun 11 '26
- 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 • u/N0-T0night • Aug 24 '25
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 • u/[deleted] • Jun 29 '25
Help me to solve this pattern guysss 😭
r/PythonLearning • u/_Hot_Quality_ • May 06 '25
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 • u/Loud_Environment2960 • Apr 27 '25
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 • u/Alireza7074 • Jul 18 '26
This is python code to get student salary!