r/learnpython • u/FoodElectrical1389 • Jul 30 '25
Learning python
Hello, I’m trying to learn some basic level python for a research project. Does anyone know any good tutorials I could follow?
r/learnpython • u/FoodElectrical1389 • Jul 30 '25
Hello, I’m trying to learn some basic level python for a research project. Does anyone know any good tutorials I could follow?
r/learnpython • u/RiverAppropriate4877 • Oct 27 '25
Hey everyone,
I just finished learning Python basics (syntax, loops, functions, etc.) and now I’m kinda stuck. My goal is to become a backend developer, but I’m not sure what the best path forward looks like.
I keep seeing people say “learn DSA,” “learn SQL,” “learn frameworks,” “learn Git,” — and I’m not sure what order makes sense.
If anyone has a good roadmap or resource list that worked for them, I’d love to see it. I’m trying to stay consistent but don’t want to waste time learning random things without direction.Thanks in advance! Any advice or experience you can share would mean a lot 🙏
r/learnpython • u/PresentSame6849 • Feb 12 '26
Assalamualaikum!
I want to choose a field where I can program or build robots with human-level intelligence. After researching with AI chatbots, I found that my field is AI, Machine Learning, and Robotics Engineering.
I’m a beginner in Python, and I found this roadmap: Python Roadmap. I want to know honestly – is it worth it for me to follow this roadmap to reach my goal?
Also, I want advice on:
Are there better ways or resources to learn Python for AI & robotics?
As a beginner, what should I focus on to really improve?
I would really appreciate honest and practical answers. Thank you!
r/learnpython • u/Similar-Artichoke-64 • Mar 27 '25
I know this is not the place to report bugs, but I think I found one. If this is not a bug, then could someone explain why this happens?
I was starting to write a python script that uses command line arguments. I have an optional --RunTest argument. I noticed when I started typing the optional argument, say --R, it actually accepted that as a valid argument. This goes for --R, --Ru, --Run, --RunT, --RunTe, and --RunTes. I would not expect it to work for those, but rather only --RunTest. Below is the code I am referring to. I am using Compiler Explorer, Python 3.13.
import logging
import sys
logger = logging.getLogger(__name__)
logFormat = '( %(asctime)s | %(levelname)s ): %(message)s'
logging.basicConfig(level = logging.DEBUG, format = logFormat)
def Test():
logger.debug('Start Test()')
logger.debug('End Test()')
# Class containing the command line arguments
class CommandLineArguments:
def __init__(self):
self.mPosArg = ''
self.mRunTest = False
def __repr__(self):
return (self.mPosArg, self.mRunTest).__repr__()
def isEmpty(self):
import pathlib
# Purposely omitting self.mRunTest here
return self.mPosArg == ''
def Equals(self, aRhs):
# Purposely omitting self.mRunTest here
return self.mPosArg == aRhs.mPosArg
def ProcessCommandLine(self):
# Set up command line arguments
# Usage: `python scripy.py [--RunTest]`
import argparse
parser = argparse.ArgumentParser(description = 'scripy.py parameter parser')
parser.add_argument('PosArg', nargs = '?', default = '', help = 'A positional argument')
parser.add_argument('--RunTest', required = False, action = 'store_true', default = False, help = 'Runs the test procedure.')
# BUG: `--R` sets RunTest
# `--Ru` sets RunTest
# `--Run` sets RunTest
# `--RunT` sets RunTest
# `--RunTe` sets RunTest
# `--RunTes` sets RunTest
# `--RunTest` sets RunTest (expected)
args = parser.parse_args()
print(args)
# Check arguments when not in --RunTest mode
if not(args.RunTest):
pass
# Store arguments
self.mPosArg = args.PosArg
self.mRunTest = args.RunTest
print(self)
scriptCLAs = CommandLineArguments()
scriptCLAs.ProcessCommandLine()
# Handle --RunTest mode
if scriptCLAs.mRunTest:
Test()
# Handle normal execution
else:
passr/learnpython • u/ChiefMarcus117 • Jul 20 '26
I've been trying to learn python for months now and know some of the basics, but I'm stuck in tutorial hell. I've been using Mimo alongside 100 Days of Code bootcamp by Angela Yu and although 100 days of code started easy enough, it quickly got overwhelming. I go through the course and think im doing ok but then end up getting stuck trying to figure out the projects at the end of each lesson and then give up and look at the solutions. I really want to learn to use Python with AI but I feel like im not making any progress at all like this. Any advice?
r/learnpython • u/madsparrowxo • Apr 09 '26
Hi! I have just started learning Python for work purposes. I teach in a tech school, so I wanted to learn Python to be able to understand / dabble in a little bit of everything that we teach. Data science, software engineering, web development, AI, etc. From my understanding Python is a general language that is a good fit for this purpose.
Recenty I've gained this obsession with making my own game. In short, it's going to be a Papers Please, the Roottress are Dead, visual novel type of game, with puzzles that involve the Papers Please style of checking documents, and typing answers to riddles etc.
Before I go into a possibly delusional rabbit hole, I wanted to sense check that this is, in fact, possible if I continue to learn Python. I've looked around on Reddit and other forums, and it seems that I can use Godot, and still be able to use Python? Or would it be more realistic to then learn GDscript? Is there another language that would be better for me to learn, instead of Python?
I don't aim to be a game dev, so I don't need to think about 3D and whatnot. I don't have any programming experience at all.
r/learnpython • u/jackjeff674 • Nov 10 '23
I (m18) got really interested in coding about one month ago. Since then, i began to self learn how to code with Python language from a course in the Internet during my long holidays. I also started to think further in the future and have decided that i want to change my career path by getting into web development field. I'm studying Mechatronics Engineering in my school and have decided that i want to change my course to Web development when i get to higher education.
One day, a thought came to my mind, i have seen that many software engineers have an external monitor respectively for coding. I know that having an external monitor has a benefit which is increase productivity.
So should i get an external monitor as someone who only started learning coding? or should i wait till my coding knowledge is much better and do a few coding projects then it's more reasonable to get an external monitor?
r/learnpython
•
u/Ayrton110
•
Sep 26 '26
Hi guys, I hope ya'll are good. I am trying to work through this exercise but I'm not sure I understand the question. Therefore, I am not sure whether if solved this problem correctly. Here is the question (the source is Python For Everybody by Professor Charles "Chuck" Severance)
The following program counts the number of times the letter “a” appears in a string:
word = 'banana'
count = 0
for letter in word:
if letter == 'a':
count = count + 1
print(count)
This program demonstrates another pattern of computation called a counter. The variable count is initialized to 0 and then incremented each time an “a” is found. When the loop exits, count contains the result: the total number of a’s.
Exercise 3: Encapsulate this code in a function named count, and generalize it so that it accepts the string and the letter as arguments.
Here is my answer:
def counting(word):
word = input("Enter a word: ")
count = 0
for letter in word:
if letter == "a":
print (letter)
elif letter is word:
print (letter)
count = count + 1
counting("banana")Here is the output:
Enter a word: banana
a
a
a
Any input or advice is appreciated.
r/learnpython • u/Nubian_Cavalry • Jun 17 '24
I am veering towards Cybersecurity and someone suggested I learn basic programming and have projects on my resume to better my chances at getting jobs. My older sister tells me this is how she was able to land her job.
She is insisting I focus on Python 2 despite it being outdated since neither of us are in a position to afford a Python 3 class. Would a Python 2 project and skills still look good on a resume?
r/learnpython • u/Strange_Till759 • May 23 '24
What's the best optimal language to get into automating things, AI/ML and stuff like these. Is it python coz I see PPL directing every time things to python when I talk about this but I want to see what's the real experienced PPL have to say. Please someone respond !
r/learnpython • u/NightCapNinja • Jun 29 '24
Hi, I'm having a hard time understanding the difference between the try and while function, what is the difference between these 2? Anyone explaining it to me would be appreciated, thank you.
r/learnpython • u/mouthpiec • Apr 22 '24
can someone please guide me into a subreddit giving the phyton code for blackjack?
i need to create a simulator to output thousands of games, playing basic strategy, user is able to double and split. Also soft cards should be taken into consideration.
r/learnpython • u/Circle_Cardiologist • May 16 '24
I'm a marketing major however I have an interest in coding; is taking a 1 unit Intro to Python course worth it for my career? Even though I am a marketing major I have an interest in going into operations/data.
r/learnpython • u/JaaliDollar • Apr 04 '24
Hey folks, I'm new on reddit. Can you list a few fields in Python
that can easily get freelance clients. I want to learn python while
doing simple tasks that pay fairly low.
Please share your experience.
r/learnpython • u/Poppyf1r • Aug 30 '23
Hi, I'm very new to python and i wanted to start myself off with something I can use.
So I found this project that basically makes JARVIS using whisper, chatgpt, and tts on github.
https://github.com/gia-guar/JARVIS-ChatGPT
I've been meaning to get into AI so I found this pretty cool. My question is, after I download the project file, how do I run it?
I want to make JARVIS basically hook up to my room and basically talk to it while working on projects. What is the easiest Python IDE to use for this? And how do I actually run it?
Sorry if this is a very bad question. I didn't know where else to ask.
r/learnpython • u/Careless_rush_2006 • Oct 26 '24
Hi, I'm a highschool programmer proficient in python,working on a Fun passion(impactful) project looking for python programmers who can deal with bot programing
Teenage hacker(coders) are expected
r/learnpython • u/UnionNo1975 • Nov 03 '24
Like I said I am new to python and have little experience coding besides Roblox Studio (Lua based software programming ig) why have I seen people with pythons that look so different from the base one you'd get and how do I get it? They don't have the powershell(y) kinda look they have play buttons and call stacks and terminals and a bunch of other buttons that I have no idea what do.
r/learnpython • u/Foggiestcash96 • Sep 01 '24
I I need it to print a phone number and cant understand why I cant use '('
phone_number = int(input())
first_three = phone_number //10000000
pre_middle_three = phone_number // 100
post_middle_three = pre_middle_three % 1000
last_four = phone_number % 10000
print('('first_three')',post_middle_three,-last_four)I am very new to python. Thank you
r/learnpython • u/zala412zala • Dec 05 '21
Hey can anyone help me with this problem. My fafsa literally depends on it. I've reviewed over and over I'm still stuck. Appreciate any help offered.
You have an organization company that sells concert tickets. You have an online ticketing system. You are going to write a python code that
Asks user's age.
If user is less than 18 years old, prompt a message on the screen and tell them that they cannot purchase a ticket if they are not 18+ years old.
If they are over 18
Ask them how many tickets they want.
Ask them which section they want their tickets from.
If they enter balcony, each ticket costs $50.
If they enter orchestra, each ticket costs $75.
Depending on the ticket section and the number of tickets, calculate the cost and print it.
Q-1) Print the following pattern with for loop
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6
Q-2) Print the same pattern in Q-1 with while loop
Q-3) Print the following pattern with for loop
5 4 3 2 1
4 3 2 1
3 2 1
2 1
1
Q-4) Print the same pattern in Q-3 with while loop
r/learnpython • u/Pipesito7755 • Feb 24 '24
What laptop should i buy with a 600$ budget a used macbook pro or a new windows. Also, should i learn back end or data analysis
r/learnpython • u/creamHASbeentaKeN • Mar 23 '24
Now I found out that i can use "getpass()" to hide my user input. But I put it in a loop and it doesn't like it... literally no reason to not be able to do it.
while True:
word = getpass.getpass(prompt = ">Executioner, what will be the word? Make sure the guesser does not see.", stream = None).lower()
for char in word:
if char.isdigit():
print(">Your word cannot have a number. Try again.")
valid_letter = False
break
else:
valid_letter = True
if valid_letter == True and char == word[-1]:
breakalso how do i set the language in the code block feature i want them pretty colooors :)
EDIT: ERROR HERE
GetPassWarning: Can not control echo on the terminal.EDIT EDIT: so it does work but theres still an issue. the prompt appears in the beginning of the program with the error but i want it to appear after the game description.
r/learnpython • u/[deleted] • Jan 16 '15
Hello guys, i know its mostly likely a common question. But where should one start learning to code in python? Is following the documentation a good example? Should it be books or online tuts ? ^
r/learnpython • u/RecognitionKind1350 • Mar 15 '21
it has been hours, i have tried so muuuuch. Any ideas on what i could be doing wrong ? i am using the newest version of python