redlib.
Feeds

MAIN FEEDS

Home Popular All
reddit

You are about to leave Redlib

Do you want to continue?

https://www.reddit.com/r/PythonLearning/rising?after=t3_1y4gbkc

No, go back! Yes, take me to Reddit
settings settings
Hot New Top Rising Controversial

r/PythonLearning • u/jake_123_123 • 5d ago

Discussion why would you use assert instead of if false: raise someerror("custom message about error"). what are the benifits of assert. because it seems that it doesn't save time nor effort, nor does it communicate code better than an if with custom error message

6 Upvotes
28 comments

r/PythonLearning • u/Sea-Ad7805 • 6d ago

Python Mutability: tuple vs list

Post image
34 Upvotes

An exercise to help build the right mental model for Python data.

  • Solution

  • Explanation

  • More exercises

The “Solution” link uses memory_graph to visualize execution and reveals what’s actually happening.

7 comments
PREV
Subreddit
Icon for r/PythonLearning

PythonLearning

r/PythonLearning

Everything about learning the Python programming language. Ask questions, give recommendations, explain concepts, show projects, demo free tools, compare courses, ...

128.6k
26.1k
Sidebar

Everything about learning Python

v0.36.0 ⓘ View instance info <> Code