Stop Using Print in Python

preview_player
Показать описание

In this video, you’ll learn how to debug better using the ice cream module. Ice cream allows for automatic variable labeling, enhanced readability and the ability to disable print.

🔔 Subscribe for content that helps you grow!

🔗 LINKS:

MY FAVORITE BOOKS

PS: Some of the links in this description are affiliate links that I get a kickback from 😜

🎬 Timestamps:
00:00 | Ice Cream
2:00 | How to use Ice Cream
4:20 | Data Structures in Ice Cream
7:45 | Disable print

🔹🔹🔹🔹🔹🔹🔹🔹🔹

🔹🔹🔹🔹🔹🔹🔹🔹🔹
Tag ~ zero to knowing

#zerotoknowing #learnpython #pythonforbeginners #100daysofcode #techeducation #python #pythontutorial #pythonprogramming #pythondeveloper #icecream #debug
Рекомендации по теме
Комментарии
Автор

first problem you can use f-strings if you don't wanna add unnecessary modules

a, b, c = 3, 5, 75
print(f"{a=} {b=} {c=}")
# output: a=3 b=5 c=75

Adding an equal after variable name will also print the variable name along with the value

fusn
Автор

F Strings cover most of this functionality. When I saw "So using print" I assumed the video was going to be about logging.
Keep putting out videos.

malcolmanderson
Автор

Would be helpful if you can make your videos more concise. You don't need a 10min long video to say use ic instead of print. Too much fluff is usually not helpful in the long run.

karthik
Автор

4 minutes long is more than enough for this video.

mdsegara
Автор

You can do this with f strings, no need to import another library.

ShaunDaniels-uqmi
Автор

Great vid I'm absolutely going to use this from now on. Thanks buddy

shinstorm
Автор

Love your content Josh! Big thank you!

brokencooking
Автор

Interesting module, reminds me of C macros used for debugging. For python I usually use pdb and logging for debugging. Will try out ic to see what difference it makes. Thanks for the video.

agentm
Автор

Can you make discurd channel to learn pyton together

AashAli-db
Автор

Would be nice to see some benchmarks. I'd also shy away from saying never do this or always use this. Different scenarios call for different tools. Two minutes in before you got to the content.

leahnjr
Автор

Haha, nice one! love your humor as always!

lucietee
Автор

I don't know why print doesn't give you the information you need. It always gives me the information I need. So, no thanks to an extra module. Btw, speaking of redundant, you repeat yourself too much.

donjindra
Автор

What if your name is Josh. 🤔 Does that make him Code?

XEONFX
Автор

stop using python. write 80% more code in C and make your app run faster!

skiller.X