+ 1
Explain the question
Print(print(5))
3 odpowiedzi
+ 1
Arvind Kumar
Yeah it is
5
None
or
5 none
+ 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
0
《 Nicko12 》 none is not there in the answer sorry bro
Options are 1. 5
2. error
3. 5 none
4. none 5