+ 5
Why there is None execute,explain me
Hi everyone x=print('sololearn') print(x) output is= sololearn None why None is execute please explain me
1 Odpowiedź
+ 3
Here:
https://docs.python.org/3.2/library/constants.html
None is frequently used to represent the absence of a value, as when default arguments are not passed to a function.
x is not going to get a value assigned as print is not returning anything to the program, it just prints to the screen