+ 1

Explain the question

Print(print(5))

14th Dec 2020, 6:35 AM
คгשเภ๔ кย๓คг
คгשเภ๔ кย๓คг - avatar
3 Respuestas
+ 1
Arvind Kumar Yeah it is 5 None or 5 none
14th Dec 2020, 8:00 AM
noteve
noteve - avatar
+ 2
print(5) >> 5 print(print(5)) >> 5 None After the code "print(5)" (inside parentheses) is executed, the print(5) will output 5 first but the code "print(5)" itself has no returned value, therefore it becomes, "None" because None is default when no value is returned. And the final code will be like this: - - - print(None) This is also the same with. def add(x, y): print(x + y) print(add(2, 3)) >> 5 >>None
14th Dec 2020, 7:02 AM
noteve
noteve - avatar
0
《 Nicko12 》 none is not there in the answer sorry bro Options are 1. 5 2. error 3. 5 none 4. none 5
14th Dec 2020, 7:05 AM
คгשเภ๔ кย๓คг
คгשเภ๔ кย๓คг - avatar