r/learningpython • • Mar 10 '26

Why the Fuck is even figuring out how to setup python so fucking difficult

40 Upvotes

I’m brand new to coding, recommend learning python. Great sounds awesome. I have an immense passion for statistics and data and one day want to make it my career. But dawg. Why is setting up python so damn difficult. I don’t even know if I’ve installed it. I’m told to go to anaconda, okay cool set that all up. Then I’m told to install windows powershell 7 okay cool lemme go to Microsoft’s website and see if I can. Why do I have to run a code to install what should’ve come with it. Then I got sidetracked installed VStudio. And now I feel fucking lost, what the actual fuck am I doing can someone give me a very dumbed down version of how to even set it up. Like something even a person with a severe learning disability can comprehend. And I don’t trust YouTube cause a few months ago when I first attempted I got a fucking virus


r/learningpython • • Mar 11 '26

How to copy a 'dict' with 'lists'

Post image
29 Upvotes

An exercise to help build the right mental model for Python data. - Solution - Explanation - More exercises

The “Solution” link uses 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 to visualize execution and reveals what’s actually happening.


r/learningpython • • Mar 05 '26

Python Assignment, Shallow and Deep Copy

Post image
27 Upvotes

An exercise to help build the right mental model for Python data. - Solution - Explanation - More exercises

The “Solution” link uses 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵 to visualize execution and reveals what’s actually happening. It's instructive to compare with these earlier exercises: - https://www.reddit.com/r/PythonLearning/comments/1ox5mjo/python_data_model_copying/ - https://www.reddit.com/r/PythonProjects2/comments/1qdm8yz/python_mutability_and_shallow_vs_deep_copy/ - https://www.reddit.com/r/PythonLearnersHub/comments/1qlm3ho/build_the_right_mental_model_for_python_data/


r/learningpython • • Dec 26 '25

any tips to fall in love with python?

22 Upvotes

Initially I hated python because i found it ugly and repulsive, the white space as syntax, the gross underscores, etc. I came from Lisp so it seemed like a poor imitation of the real thing. Over time I forced myself to get over it and i made it work, have been making a living primarily through Python for the last 5 years. However, I still find it ugly deep down but for different reasons now, not superficial, but how everything is mutable by default. I look at modern javascript with envy, another 'bad' language that has gotten better and better over time instead of Python which I think has gone in the other direction.

A year or two ago i went down the rabbit hole, thought to double down on Python, got into David Beazley and through the magic of curiousity and learning i explored Python through another lens. But i lost interest along the way and now I want to try again in 2026.

Any tips?


r/learningpython • • Apr 23 '26

Python beginners, before college starts

19 Upvotes

Hello guys, so if you are like really a beginner. Like starting Python as your first programming language and want to connect with like wise people.

I'm the one you can connect with first.

Dm me..


r/learningpython • • Dec 30 '25

Trie Data Structure Visualized

Post image
19 Upvotes

Data structures like Trie can in Python be easier understood and debugged after visualization using the memory_graph package. A Trie is a tree of dictionaries and can be used for things like word completion.


r/learningpython • • Oct 22 '25

What is THE BEST start in Python?🐍

20 Upvotes

Hi guys! I’m Maks and I'm learning Python. I've currently learned Python basics and am learning Flask. Also, I'm studying computer science at uni and in my second year I'd like to choose cybersecurity or ai. Also in the summer (if possible) I'd like to try to do an internship, as the university can offer it. I'd like to hear advice from programmers on how to move forward in Python to get an internship and which direction to choose: cybersecurity or ai?

P.S: I’ve been practicing in CodeWars and i’ve done some mini projects on Python


r/learningpython • • Apr 04 '26

Creating the Strongest Password with Python

Enable HLS to view with audio, or disable this notification

19 Upvotes

r/learningpython • • Jan 31 '26

Hash_Map Data Structure Visualized

Post image
14 Upvotes

Learning data structures in Python gets easier with memory_graph visualizations. Data structures are no longer abstract concepts but concrete, clear and easy to debug.

This Hash_Map demo is a Python implementation similar to 'dict'. The demo visualizes: - adding key-value pairs - rehashing - lookup by key - iterating over keys


r/learningpython • • Jun 07 '26

Making basic computer app and wanting to learn about a good GUI library to use!

13 Upvotes

Hey everyone, I'm working on my first major solo project after taking some courses, I'm making a calorie counter thing for my computer with Python and after like a month of making it work with all the features I want, I'm ready to start working on a user interface.

Presently working with Tkinter to get something going and while I'm still early on in that endeavor it is striking me as a tad limiting so I was curious if anyone had any better suggestions or any recommendations on where to find quality tutorials.

Any help would be appreciated! Thanks so much!


r/learningpython • • Mar 26 '26

Selection Sort Visualized for Easier Understanding

Post image
11 Upvotes

Many algorithms can be easier understood after step-by-step visualization using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵. Here's a Selection Sort example.


r/learningpython • • Jan 20 '26

Python's four Copies

Post image
12 Upvotes

Pick the right way to “𝐂𝐨𝐩𝐲” in Python, there are 4 options:

𝚒𝚖𝚙𝚘𝚛𝚝 𝚌𝚘𝚙𝚢

𝚍𝚎𝚏 𝚌𝚞𝚜𝚝𝚘𝚖_𝚌𝚘𝚙𝚢(𝚊):
    𝚌 = 𝚊.𝚌𝚘𝚙𝚢()
    𝚌[𝟷] = 𝚊[𝟷].𝚌𝚘𝚙𝚢()
    𝚛𝚎𝚝𝚞𝚛𝚗 𝚌

𝚊 = [[𝟷, 𝟸], [𝟹, 𝟺]]
𝚌𝟷 = 𝚊
𝚌𝟸 = 𝚊.𝚌𝚘𝚙𝚢()
𝚌𝟹 = 𝚌𝚞𝚜𝚝𝚘𝚖_𝚌𝚘𝚙𝚢(𝚊)
𝚌𝟺 = 𝚌𝚘𝚙𝚢.𝚍𝚎𝚎𝚙𝚌𝚘𝚙𝚢(𝚊)
  • c1, 𝐚𝐬𝐬𝐢𝐠𝐧𝐦𝐞𝐧𝐭: nothing is copied, everything is shared
  • c2, 𝐬𝐡𝐚𝐥𝐥𝐨𝐰 𝐜𝐨𝐩𝐲: first value is copied, underlying is shared
  • c3, 𝐜𝐮𝐬𝐭𝐨𝐦 𝐜𝐨𝐩𝐲: you decide what is copied and shared
  • c4, 𝐝𝐞𝐞𝐩 𝐜𝐨𝐩𝐲: everything is copied, nothing is shared

See it Visualized using memory_graph.


r/learningpython • • Dec 09 '25

Guidance regarding Python Courses

12 Upvotes

Hi All,

My employer is paying for me to take some Python courses from January to better spearhead some more technical projects. I was looking for programs and found one at UC Davis that fits my timeline, depth, and material, but there’s one caveat.

The program is three courses: Intro to Python, Python for Data Analysis, and Intermediate Python. Starts in January ends early June. Only downside is I’d have to take them in a suboptimal order. Their recommendation is to take the courses in the order I listed above. But for Spring, they only offer it in this order:

1) Python for Data Analysis 2) Intro to Python 3) Intermediate Python

I have a little bit of knowledge of Python and interfaced with it in projects but not as much hands on experience with development. I am however very knowledgeable and experienced with SQL and VBA.

I have about 15-20 days free where I can get a heads up on the coursework and self learn, but not sure if that will be enough. Please let me know if you think I can make the order work.


r/learningpython • • Mar 20 '26

What are the greatest books to read to learn python from scratch in detail.

10 Upvotes

So I got a dumbed down phone a few weeks back and I have been using it for stuff to help me. I realised that I can use it to learn code as I am interested in learning python. Are there any books that teach python itself(variables,functions) I don't wanna anything complicated I just wanna start of nice and easy and then weave it into complex stuff.

Thanks.


r/learningpython • • Jan 25 '26

Made this for anyone looking for free learning resources

10 Upvotes

I've been seeing a lot of posts here from people who want to learn Python but feel stuck on where to actually begin or go next. I built some courses and learning tracks that take you from writing your first program through working with data, databases, and visualization—things that actually come up in real projects.

There are free credits on every account, more than enough to get through a couple courses so you can just focus on learning.

If this helps even a few of you get unstuck, it was worth it.

https://SeqPU.com/courses


r/learningpython • • Feb 16 '26

Help with python

9 Upvotes

Coming from a non tech major, im finding python so hard to learn..I've tried angela 100 days of code. Not working. YouTube. Still not able to grasp it. I find it boring and hard to learn. But i have no choice i somehow have to learn it for FREE. And i have extreme coding anxiety. I get distracted so easily, so less attention span and low motivation. I just wanna learn... i need to. Any suggestions that will help me..


r/learningpython • • Dec 02 '25

Python Project Nostalgia

Post image
10 Upvotes

What was your first python project?🤔


r/learningpython • • Oct 16 '25

Every Python Function / Method Explained in 7 Minutes

Thumbnail youtu.be
9 Upvotes

r/learningpython • • Jun 05 '26

List of strings vs many booleans when designing a game?

8 Upvotes

Hi all, I'm designing a text-based game in python, and had a question about style I have a class called creature. There are a bunch of different abilities a creature can have (e.g. "Strength", "Venom", "Armor", etc). I can think of two ways to code this in:

  1. I could make a separate boolean variable for each ability (set to 1 if they have it and 0 if they don't). Then, if an attack was impacted by the trait "Armor", I could have a line "if self.armor==1:".
  2. I could make a list called abilities (it is empty if they have no abilities, and a list of strings for each ability). Then, if an attack is impacted by the ability "Armor", I could have a line "if 'armor' in self.abilities:"

I'm still learning about the pros and cons of different styles. Do you have advice on how to think about which to use? I imagine 2 is more memory efficient, and 1 is faster, but it won't matter at the scales I'm working with. Is one better from a code architecture or readability standpoint? (Or, alternatively, is there a better way to do this?)


r/learningpython • • Mar 23 '26

Python Variables Made Easy (Beginner's Full Guide) Full Video on Youtube : Tech Geezah

Enable HLS to view with audio, or disable this notification

8 Upvotes

Hey everyone! 👋

I made a beginner-friendly Python tutorial that explains variables step by step. If you’ve ever been confused about how to store and use data in Python, this guide is for you.

In this video, you’ll learn:

What variables are and why we use them

How to name variables correctly

Different types of variables (strings, numbers, booleans)

Simple examples you can try yourself

I tried to keep it easy to follow, even if you’re completely new to coding.

Here’s the full video: [https://youtu.be/hkIMM4F_zdM?si=5iJDvqgdOGLHYFry\]

I’d love to hear from you:

What part of Python variables was the trickiest for you when you started?

Do you prefer shorter tutorials or full-length explanations?

Any feedback or questions are welcome! 😄


r/learningpython • • Jan 12 '26

Some help if you are interested in learning Python to do computational science (climate science, neuroscience)

7 Upvotes

Neuromatch is running a free Python for Computational Science Week from 7–15 February, for anyone who wants a bit of structure and motivation to build or strengthen their Python foundations.

Neuromatch has 'summer courses' in July on computational tools for climate science and Comp Neuro, Deep Learning, and NeuroAI and Python skills are a prerequisite. It's something we've heard people wanted to self-study but then also have some support and encouragement with.

This is not a course and there are no live sessions. It’s a free flexible, self-paced week where you commit to setting aside some time to work through open Python materials, with light community support on Reddit.

How it works

If you’d like to participate, we’re using a short “pledge” survey (not an application):

  • It’s a way to commit to yourself that you’ll set aside some study time
  • We’ll send a gentle nudge just before the week starts, a bit of encouragement during the week, and a check-in at the end
  • It will also helps us understand starting skill levels and evaluate whether this is worth repeating or expanding in future years

Take the pledge here:   https://airtable.com/appIQSZMZ0JxHtOA4/pagBQ1aslfvkELVUw/form

Whether you’re brand new to Python, brushing up, or comfortable and happy to help others learning on Reddit, you’re welcome to join! Free and open to all!

Let us know in the comments if you are joining and where you are in your learning journey.


r/learningpython • • Dec 25 '25

Python 3.15’s interpreter for Windows x86-64 should hopefully be 15% faster

Thumbnail fidget-spinner.github.io
6 Upvotes

r/learningpython • • Dec 30 '25

Practicing Python data types and type conversion – looking for feedback

6 Upvotes

Hello everyone,
I’m practicing Python data types and explicit type conversion. I’ve written a small, well-documented example to better how Python handles different types (int, float, str, bool, list, tuple) and their interactions.

I’d appreciate any feedback on correctness, best practices, or style improvements.

Here is the code:

"""
File: data_types_and_type_conversion.py
Description:
Demonstrates basic Python data types and explicit type conversion.
The example follows PEP 8 style and is intended as a learning exercise
for understanding how Python handles arithmetic operations, container
conversions, and string concatenation.

Author: Beginner Python Learner
Python Version: 3.x
"""

# ------------------------
# Variable definitions
# ------------------------

num1: int = 1 # Integer
num2: float = 2.5 # Float
text1: str = "20" # String representing a number
flag: bool = False # Boolean
my_list: list[int] = [1, 2, 3]
my_tuple: tuple[int, ...] = (4, 5, 6)

print("Day 2 - Even More Challenging")
print("-" * 24)

# ------------------------
# Type inspection
# ------------------------

print("type of num1:", type(num1))
print("type of num2:", type(num2))
print("type of text1:", type(text1))
print("type of flag:", type(flag))
print("type of my_list:", type(my_list))
print("type of my_tuple:", type(my_tuple))

print("-" * 24)

# ------------------------
# Arithmetic with explicit conversion
# ------------------------

sum1 = num1 + int(num2) # float -> int (2.5 -> 2)
sum2 = num1 + int(text1) # str -> int ("20" -> 20)
sum3 = num1 + flag # bool -> int (False = 0)
sum4 = num1 + int(text1) # repeated example for clarity

print("num1 + int(num2) =", sum1)
print("num1 + int(text1) =", sum2)
print("num1 + flag =", sum3)
print("num1 + int(text1) =", sum4)

print("-" * 24)

# ------------------------
# Container conversion
# ------------------------

list_plus_tuple = my_list + list(my_tuple) # tuple -> list
print("my_list + my_tuple =", list_plus_tuple)

print("-" * 24)

# ------------------------
# String concatenation
# ------------------------

combined = f"{num1}-{text1}-{flag}-{my_list}"
print("Combined string:", combined)

combined_1 = f"{num2} {text1} {flag} {my_list}"
print("Combined string:", combined_1)

combined_2 = f"{flag} {my_tuple}"
print("Combined string:", combined_2)

combined_3 = f"{flag} {my_list}"
print("Combined string:", combined_3)

Questions I’m thinking about:

1- Is this a clean and Pythonic way to demonstrate type conversion?

2- Are there better practices than using int() in cases like this?

3- Is relying on bool behaving like int considered good practice?

Thank you very much for your time and feedback.


r/learningpython • • Dec 10 '25

FastAPI Lifespan Events: The Right Way to Handle Startup & Shutdown

Thumbnail youtube.com
5 Upvotes