Impressive! I never thought that we can put print() inside a list comprehension. Seems like cheating to me 😂. Thanks for that! I learn something new today 💪.
I'm a self-taught dev focused on websites and Python development.
My friends call me the "Data Genie".
When I get bored, I find tech to read about, write about and build things with.
Impressive! I never thought that we can put
print()inside a list comprehension. Seems like cheating to me 😂. Thanks for that! I learn something new today 💪.Since Python 3, print is a function so you can use it anywhere you'd use a function