r/learnpython • • Jul 20 '26

Stuck learning python. Asking for advice

0 Upvotes

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 • • Apr 09 '26

Is Python a good option for me?

0 Upvotes

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 • • Nov 10 '23

As a very beginner at Python, should i get an external monitor?

0 Upvotes

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 • • Sep 26 '26 Regret

Question regarding what this exercise is asking me?

0 Upvotes

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 • • Jun 17 '24

Do python 2 projects still look good on resumes?

0 Upvotes

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 • • May 23 '24

What's the best optimal language

0 Upvotes

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 • • Jun 29 '24

Whats the difference between "try" and "while" in Python?

0 Upvotes

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 • • Apr 22 '24

Phyton code for blackjack to simulate thousands of games using basic strategy.

0 Upvotes

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 • • May 16 '24

Is learning basic Python worth it for marketing?

0 Upvotes

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 • • Apr 04 '24

Got to start earning now .

0 Upvotes

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 • • Aug 30 '23

How do I run a code from GitHub for Python

0 Upvotes

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 • • Oct 26 '24

Hey,any highschool (teen) python coder here,wants to create a fun(but impactful) project

0 Upvotes

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

My LinkedIn - https://www.linkedin.com/in/somnath-chowdhury-0794492a4?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_medium=android_app


r/learnpython • • Nov 03 '24

I need help installing and I am new.

0 Upvotes

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 • • Sep 01 '24

cant understand why I cant use '('

0 Upvotes

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 • • Dec 05 '21

ANY HELP WOULD BE GREATLY APPRECIATED.

0 Upvotes

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

  1. Asks user's age.

  2. 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.

  3. 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 • • Feb 24 '24

Best tips to start coding in python

0 Upvotes

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 • • Mar 23 '24

Need to hide user input but in a loop

0 Upvotes

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]:
        break

also 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 • • Jan 16 '15

Where should one begin ?

0 Upvotes

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 • • Mar 15 '21

i cannot seem to convert .py to exe

0 Upvotes

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


r/learnpython • • Aug 11 '23

Where to get python free course pls?

0 Upvotes

.


r/learnpython • • Aug 27 '18

Create an empty list

0 Upvotes

Good monday everyone!

I just started university and is learning python. I have no experience with the language whatsoever so i was hoping on getting some help here :)
We got an assignment to get used to some of the basic functions. The task is:

Create a program which starts with an empty list and ends up with a list

containing the numbers 1-10.000. This should not be done manually like

mylist=[1,2,...,10.000]. Hint use a for-loop and append.

Been stuck at this for hours now.

appreciate all answers :)


r/learnpython • • Jan 26 '23

Is there ANY way to store a function's output in a variable without executing it?

0 Upvotes

I want to store a function's output, so I can use that data later in the code as the variable. But whenever I assign the function to the variable it executes it. How can I bypass the executing but storing the returned output of the function in the variable?


r/learnpython • • Jan 16 '23

Any way to fake wireless mouse/emulate mouse so PC and programs cannot tell the difference between fake/real?

0 Upvotes

Ive thought of using a wireless usb dongle for mouse and keyboard but ideally I would like to avoid trying to buy something. Just need to emulate a real mouse so it doesnt look like im moving the mouse with software only.


r/learnpython • • Feb 17 '23

Did i create this tip calculator correctly? Everything works fine, but i still want comments on my code. Critique it.

0 Upvotes

print ("Welcome to the tip calculator")

fuck1 = input("What was the total bill? $")

fuck2 = input("What percentage tip would you like to give? Enter a number 1-99: ")

fuck3 = input("How many people would you like to split the bill with? ")

tip = float(fuck1) * (int(fuck2) / 100)

total = round((float(fuck1) + float(tip)) / float(fuck3), 2)

print (total)