+ 1

def some_func(): print("Hi!") var = some_func() print(var)

Why is none printed at last?

1st Aug 2019, 7:27 AM
Dhyey Badheka
Dhyey Badheka - avatar
2 Respuestas
+ 3
To output "Hi!": def some_func(): return "Hi!" var = some_func() print(var)
1st Aug 2019, 7:52 AM
Helena
Helena - avatar