+ 3
It prints hello none. Because of a=g() means you assign g() to a variable when you print a variable first it run g() function which print, hello but this print is by g() not by print(a) but a variable have nothing in it, a is empty because of the function g() nothing return that's why it prints None.if your function returns something then the output will be hello return value Because now a variable has return value in it.
14th Apr 2020, 6:01 PM
Maninder $ingh
Maninder $ingh - avatar