DEV Community

Discussion on: One code liner in Python 🐍

Collapse
 
willnode profile image
Wildan Mubarok

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

Collapse
 
michaelcurrin profile image
Michael Currin

Since Python 3, print is a function so you can use it anywhere you'd use a function