r/learnpython • u/No-Inevitable-6476 • Sep 04 '26
Python difference.
What is the difference between python ,IronPython,Jython,Cython.i will get a lot of confusion towards these concepts.
r/learnpython • u/No-Inevitable-6476 • Sep 04 '26
What is the difference between python ,IronPython,Jython,Cython.i will get a lot of confusion towards these concepts.
r/learnpython • u/maleficviper001 • Sep 04 '26
pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At line:1 char:1
+ pip install flask
+ ~~~
+ CategoryInfo : ObjectNotFound: (pip:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I want you to explain how to fix this without using any extra tools. Whenever I try to import a Python module, an error keeps showing up. I even deleted everything because I thought I messed up my PATH. I reinstalled Python, selected the python.exe path, but still no progress. This same problem keeps appearing every time.
r/learnpython • u/MoreScorpion289 • Sep 04 '26
This is a console based account system I've been building as I learn Python. Right now it lets you create an account with username and password rules (length limits, and the password needs a letter, a number, and a special character), log in with a 3 attempt lockout, and pick from a simple menu.
It's a work in progress and part of a bigger project. Next I want to add a to-do list and notes, then save the data to a file, and eventually hash the passwords instead of storing them as plain text.
The three password checks are repetitive. I haven't learned functions yet so I did them the long way with separate loops. I already know functions are the fix and that's my next topic, so you don't need to only point that out, but any other feedback is welcome.
I used AI (Claude) as a tutor to understand concepts and point me toward my own bugs, but I wrote and debugged every line myself. I'm learning how to code through the MOOC.
GitHub: https://github.com/mart23inez/Personal-Account-System/tree/main
What would you improve or build next?
r/learnpython • u/No_Bobcat_6522 • Sep 04 '26
Hi everyone.. I'm an Egyptian student accepted for a Master's at Sapienza University of Rome, starting September 21, 2026.
My documents and university procedures are ready, but I'm unable to secure an Italian student visa appointment through AlmavivA Egypt.
Appointments are released daily around 9 AM, but they disappear extremely quickly. There are also brokers/scalpers who use automated tools to secure appointments much faster than normal users, then resell them to students.
I'm not looking to buy an appointment or build a tool to resell them. I just need help from someone experienced with Python / Playwright / Selenium / browser automation to understand if there's a legitimate technical solution that could give me a fair chance of securing one appointment for myself.
If you have experience with this kind of automation and can help or point me in the right direction, I'd really appreciate it.. I'm genuinely worried about missing my Master's start date because of this.
Thank you š
r/learnpython • u/Efficient_Major40 • Sep 04 '26
im using linux mint and when i try to import turtle it always says
"
import turtle
ModuleNotFoundError: No module named 'turtle'
Process finished with exit code 1
"
i tryed to download tinker it dont help me i dont know what to do no one have that problem
r/learnpython • u/Yakult_EnlatadoOreon • Sep 03 '26
I'm really desperate, I have a college project where I need to present at least one movement algorithm based on a Cartesian plane. I've already been introduced to Python, but I can't say that's my strong point, I'd like to know recommendations for study materials, or where to start!! Thanks you šš
r/learnpython • u/Itz_rainy365 • Sep 04 '26
I wrote this code in VsCode using functions after I completed the free trial in [boot.dev](http://boot.dev), if you notice anything I can improve or make better, please write it in the comments:
def main():
print("This code is starting...")
if __name__ == "__main__":
main()
def stats(title, weapon, mana, health):
print("Character Stats:")
print(f"Title: {title}")
print(f"Weapon: {weapon}")
print(f"Mana: {mana}")
print(f"Health: {health}")
def take_damage(health, damage):
print("===================================")
print(f"Current Health: {health}")
updated_health = health - damage
if updated_health < 0:
updated_health = 0
print(f"You took {damage} damage, You Died!")
else:
print(f"You took {damage} damage!")
print(f"Updated Health: {updated_health}")
return updated_health
stats("Warrior", "Sword", 50, 100)
take_damage(100, 30)
take_damage(70, 80)
def respawn(updated_health):
print("===================================")
if updated_health <= 0:
print("Respawning...")
updated_health = 100
print(f"Health has been restored to {updated_health}.")
else:
print(f"You are still alive! You have {updated_health} health remaining.")
return updated_health
respawn(0) Ā
take_damage(100, 41)
take_damage(59, 20)
take_damage(39, 20)
respawn(19)
r/learnpython • u/Scopophobic_Frontman • Sep 04 '26
So I just started diving into this wonderful world of python and I just got one question - are you guys using different models to build/check/verify/test? Is that recommended? If yes, how should I go about it? Thanks everyone!
r/learnpython • u/SatanCanPutItInMyAss • Sep 04 '26
Hi all, new to Python and for my first project I'm trying to code a program that will randomly select a movie or tv show using a pre-made list, and a "genre" plus "media type" as input.
I feel I am over complicating it.
Here's where I'm at so far:
def media_selector(media, genre):
### attempting to remove previously selected titles and for some reason make my own RNG \/###
increment = + 1trans_rng = [1, 2]
genre = ['romance', 'action']
movie_list = ['rango', 'taxi driver']
series_list = ['akira', 'trigun']
### spell check, obviously \/###
spell_check = ['film', 'movie', 'tv show', 'tv series', 'tv', 'romance', 'action']
if not isinstance(media, str):
return 'format is: media type, genre'
### not sure if i should be defining a function and calling it at the same time - also is a translation table too much ? \/###
if media and genre is (spell_check):
def media_decider():movie_trans_tbl = movie_list.maketrans(movie_list, trans_rng)movie_transd = movie_list.translate(movie_trans_tbl)series_trans_tbl = series_list.maketrans(series_list, trans_rng)series_transd = series_list.translate(series_trans_tbl)
selector = slice(increment)
else:
return 'film/movie or tv show/tv series'
any guidance/recommended resources would be greatly appreciated!
r/learnpython • u/Akshi_2826 • Sep 04 '26
Hi all, i am intrestentd in building myskills and i want to take up a python course as it is not working out for me on youtube and free courses. I also donāt know where to start from as there arĀ
Want to join python courses to build skills. Don't know where to start from. Number of courses in the internet. Any suggestions?
r/learnpython • u/Rockstaru • Sep 03 '26
Disclaimer: I'm not a developer, just a network engineer that can spell Python correct about 60% of the time.
I have a script that collects current neighborship data on a router (CDP, LLDP, OSPF, EIGRP, etc.) and compares it to a known good baseline (neighborship data that was collected and stored at a time when all expected neighborships were up). The data is collected into a dictionary object that stores the local interface a neighbor is known on and the neighbor's IP or hostname as key-value pairs (e.g. `{'HundredGigE1/0/1':'RouterA'}`). If all expected neighbors are up (e.g. `if collected_data == device_baseline`), the report generated notes that the current state matches the baseline; otherwise, it goes through the current data and baseline and notes any added/changed/missing neighbors.
I'm wanting to add tracking to this--when the script runs and grabs the current data, if it matches the baseline, I want a timestamp stored next to it, maybe something like `{'HundredGigE1/0/1': {'name':'RouterA','last_up':<current_timestamp>}}`. That way if an expected neighbor is currently down, I can have the report note the last time it was up. (I currently have the script run a sweep/collect function every 10 minutes but not generate a report, so the data would be relatively current. At present it is just checking whether devices are online, not actually logging into anything and pinging it. We have monitoring solutions, a syslog server, etc. and this isn't meant to replace those in terms of real-time data, it is just for generating a daily overview report.)
If I structure the data this way, it would break the equality check I use to check for the current data matching the baseline; even if all expected neighbors are up, the timestamps would not match. Would the best way to work around this be to just create a copy of the baseline and current data and pop the timestamp field out, or is there a more elegant way for a comparison operation between dicts to ignore the timestamp key?
r/learnpython • u/Key_Cloud_7002 • Sep 03 '26
I'm trying to teach myself python using John Zelles book. On the 13th chapter it gives this example of recursion I'm trying to understand:
def moveTower(n, source, dest, temp):
if n ==1:
print("move disk from , " , source , "to", dest)
else:
moveTower(n-1, source, temp, dest)
moveTower(1, source, dest,temp)
moveTower(n-1,temp,dest,source)
def hanoi(n):
moveTower(n , "a", "c","b")
hanoi(3)
The code is first assiging the variables A to source then C to dest then b to temp but do the lines moveTower(n-1, source, temp, dest) and moveTower(n-1,temp,dest,source) work? Would it be moveTower(3-1, a,b,c)? How exactly are they outputting a to c then a to b then c to b and b to a , etc...
r/learnpython • u/Expensive_Break_6163 • Sep 03 '26
Multiple pods, each an asyncio worker pulling jobs from a shared queue (Redis/SQS-shaped). On scale-down/deploy I want to stop pulling new jobs and let running ones finish - is there anything in asyncio itself for this?
r/learnpython • u/Aguywithpotatoes • Sep 04 '26
I'm currently relearning python since it's been a long time since I touched one. But I can't seem to write multiple lines of code since it'll run 1 line of code at a time (whenever I press enter to write on a new line).
r/learnpython • u/Minute-Working-731 • Sep 03 '26
Thanks!!!
r/learnpython • u/Sakuraaa_29 • Sep 03 '26
I'm writing a Python script to fetch PR metadata and repository history from the GitHub REST API to build a dataset.
I'm hitting rate limits fairly quickly once the volume increases. For scripts pulling larger datasets, what's the standard pattern?
r/learnpython • u/iman09 • Sep 02 '26
I've worked as a baker for most of my adult life, during Covid I left my job and transitioned to baking from home. Things were going well, but for the past few months, my mum's health has been declining and as her primary caregiver, I can't carry on with that job and I'm looking for something that I can work from home on my computer.
After looking at various options, I found Python and how it's useful in many places. My tech skills are absolutely basic, I mean I can navigate stuff and if I don't know anything I can look up how to go about it but coding and creating stuff is beyond me. I learnt the basics about computers back in school but that was over a decade ago, so I understand that it's a new language and understand the concept of scripts.
I want to know if investing myself in learning Python is worth it? I understand that it's not a quick thing, that I need to dedicate time to it and practice to keep up and grow my skills. I'd also like to know what kind of careers I can look into so that I can work from home.
r/learnpython • u/Typical_Succotash126 • Sep 03 '26
So i started learning python a little while ago, I have learnt the basics such as loops and functions etc then I moved onto libraries such as pandas, numpy and matplotlib as I am data analytics student
Most of the tutorials I found cover the basics. What should I be doing to progress further, I wanna master python for now. I would like to know what other important and useful libraries and functions should I be learning. I am thinking of learning about automations next, let me know if there is anything else
A guide and resource material would be helpful as well
r/learnpython • u/ommy-god • Sep 03 '26
TLDR: how feasible is it to make an extremely rudimentary āappā solely for personal use using only an iPhone and iPad (with occasional access to a friendās Macbook), that can be used and updated on (/across multiple) iOS devices?
~ ~ ~ ~
I have next to no knowledge of code but Iām a good learner and love a new project. I want to make myself a gamified productivity(etc.) āapplicationā that only needs to be for personal use. Just me. And honestly it can start just as a rudimentary glorified to do list.
Ive been researching for a few days, and python seems to be the most approachable language for the job, but at this point my head is swimming a bit, and i just wanna make sure what i want is feasible before I sink any money and a lot more time lol. Id appreciate any advice!
My restrictions:
-must be easily used and updated from iOS devices. Preferably across multiple.
-I can only write/edit from iPhone and iPad, with limited access to a (family memberās) Macbook. Might be able to locate external keyboard.
-I got next to no budget lol (could possibly make small otp for something like Pythonista, MAYBE an inexpensive subscription for something).
-I want as little to do with AI as humanly possible.
How doable is what Iām imagining? The most recent possible roadblock Ive come to is that, from what ive researched, Pythonista seems like a good IDE for iOS, but I dont think id be able to use it as a reliable virtual environment(?).
Thanks in advance! ^^ <3
~ ~ ~ ~
EDIT: specified it doesnt need to be a full on app with bells and whistles. I just want to start with a glorified to do list essentially.
r/learnpython • u/BossBandit8 • Sep 03 '26
Ik python basics and all basic syntax so what would be the next thing to learn?
Can recommend and yt vid(cs50p full beginner so no)
Im trying freecodecamp yt videos are there any other videos u would recommend?
Also im interested in web dev so help me out with this as well or should i try out a different language?
r/learnpython • u/greenleafsalad • Sep 02 '26
hi there - i'm trying to add a small image to an easygui msgbox, but i think i'm probably not importing it properly. what i have at the beginning is:
import easygui
image_1 = "skull_tiny.png"and then a bunch of stuff (it's a short choose-your-own-adventure story) and then i would like to add the image at the point the player dies, like so:
if answer5 == "turn":
easygui.msgbox("You choose to turn and find yourself face to face with an enormous dinosaur. The last thing you see before you die is two rows of sharp teeth coming towards you from above.", image = image_1, ok_button = "Game over.")the code works fine without the image, but as soon as i add it, all that comes up when you get to that part is a small empty box, with no clickable options. the image is in the same folder as the .py file, but maybe i need to put in the full path?
this is what's in the console:
File ~\AppData\Local\spyder-6\envs\spyder-runtime\Lib\tkinter__init__.py:1711, in Misc._configure(self, cmd, cnf, kw)
1709 if isinstance(cnf, str):
1710 return self._getconfigure1(_flatten((self._w, cmd, '-'+cnf)))
-> 1711 self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
TclError: image "pyimage4" doesn't existany help would be greatly appreciated!
r/learnpython • u/SammuelNash • Sep 02 '26
I have started and abandoned four video courses this year. Not because they were bad. I watch, I nod, I understand every line while it is on screen, and then I open an empty file and there is nothing in my head. Clearly I need the kind that makes me type. Candidates on my list are boot.dev, exercism and codewars, and it is less clear which of those are that and which just put a video next to a text editor.
r/learnpython • u/cjmejias17 • Sep 02 '26
Hola a todos, necesito ayuda
Estamos aprendiendo python, instalamos la version 3.14, instalamos en una laptop con window 11 y todo funciona bien.
384
Hi everyone, I need help.
We're learning Python. We installed version 3.14 on a Windows 11 laptop, and everything works fine. However, the installation on Windows 10 doesn't work when I try to import NumPy.
The `testnumpy.py` module has the following instructions: `import numpy`
`print('hello word')`
When I run `python testnumpy.py`, I get the following error:
Traceback (most recent call last):
File "C:\KAIROS\Python\Python314\Lib\site-packages\numpy_core__init__.py", line 24, in <module>
from . import multiarray
File "C:\KAIROS\Python\Python314\Lib\site-packages\numpy_core\multiarray.py", line 11, in <module>
from . import _multiarray_umath, overrides
ImportError: DLL load failed while importing _multiarray_umath: Error en una rutina de inicialización de biblioteca de vĆnculos dinĆ”micos (DLL).
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\KAIROS\testnumpy.py", line 1, in <module>
import numpy
File "C:\KAIROS\Python\Python314\Lib\site-packages\numpy__init__.py", line 122, in <module>
from numpy.__config__ import show_config
File "C:\KAIROS\Python\Python314\Lib\site-packages\numpy__config__.py", line 4, in <module>
from numpy._core._multiarray_umath import (
...<3 lines>...
)
File "C:\KAIROS\Python\Python314\Lib\site-packages\numpy_core__init__.py", line 85, in <module>
raise ImportError(msg) from exc
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.
We have compiled some common reasons and troubleshooting tips at:
https://numpy.org/devdocs/user/troubleshooting-importerror.html
Please note and check the following:
* The Python version is: Python 3.14 from "C:\KAIROS\Python\Python314\python.exe"
* The NumPy version is: "2.5.2"
and make sure that they are the versions you expect.
Please carefully study the information and documentation linked above.
This is unlikely to be a NumPy issue but will be caused by a bad install
or environment on your machine.
Original error was: DLL load failed while importing _multiarray_umath: Error en una rutina de inicialización de biblioteca de vĆnculos dinĆ”micos (DLL).
Any suggestions?
r/learnpython • u/Icy-Order2226 • Sep 02 '26
**Day 6-7/100: 16-Day Intensive Before College Starts ā Am I Approaching This Right?**
Hey everyone, I'm in a unique situation and want advice on my approach.
**Context:**
- Doing B.Tech in Food Technology
- Something inside me wants to learn CS deeply, not just stick with my degree
- Currently Day 6-7 of Angela Yu's 100 Days Python Bootcamp
- Goal: Reach "extremely comfortable" with coding (can build things, debug, read code confidently) BEFORE college workload crushes me
- Timeline: 16 days (Sep 2-18) with 8 hours/day commitment
- Resources: Angela Yu course, "Think Like a Programmer" book, Gemini subscription, Claude free
**My Plan:**
- Week 1 (Days 6-12): Finish Angela's fundamentals (conditionals, loops, functions, data structures)
- Week 2 (Days 13-18): STOP watching tutorials. BUILD 5-6 projects (number guessing, calculator, rock-paper-scissors, hangman, etc.)
- After Sep 12: Slow down to 5-7 hours/week alongside college
**My Real Questions:**
**What I'm NOT worried about:**
- Speed (I'm okay learning slowly after college)
- Being perfect (just want fundamentals solid)
**What I AM worried about:**
- Burning out and quitting entirely
- Wasting these 16 days on the wrong approach
- Not having enough time if I take too long on tutorials
Any advice from people who've done intensive bootcamps or self-taught before college? What would you do differently?
Thanks in advance. This community has been amazing so far.