'Why do it get the value None when I use print(function()) [duplicate]
Trying to understand why this is happening. When I put tall() inside print(), it prints tall() but ALSO a None value. Why is the value None given after it has already printed out tall()?
def tall():
print('31337')
print(tall())
Result:
31337
None
Solution 1:[1]
You must know that a function always return a value and in your case your function is not returning any value so the None value also.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Suman Gangopadhyay |
