print function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

print function

why a print function inside another print function is not executing?

27th Jan 2020, 3:35 AM
Hari Kanna
Hari Kanna - avatar
2 Answers
+ 2
Can you show us an example?. It worked for me if i put it like print(print('some text'))
27th Jan 2020, 3:44 AM
Trung Hiếu Lê Trần
Trung Hiếu Lê Trần - avatar
+ 1
Oh it is and it works. Print is a function returning None And that's what the outer print is printing.
27th Jan 2020, 6:45 AM
Oma Falk
Oma Falk - avatar