Post

Kamal Gurjar
Kamal Gurjar@KamalGurjar8·
@PythonPr If written exactly like this: no output. The print() is inside the function after return, so it never executes. If intended: def soma(*args): return sum(args) print(soma(1, 2, 3, 4))
English
2
0
6
254
Neeraj kumar | AI/ML
Neeraj kumar | AI/ML@neeraj__ai·
@PythonPr I form just starting and your quiz hard Because my study today python day 1 - variable & data types
English
0
0
0
201
Robin Fultz
Robin Fultz@robin16633·
@PythonPr output == Nil. With the print statement inside the def nothing gets printed.
English
0
0
0
58
Supermicro
Supermicro@Supermicro·
What powers the world’s most advanced AI systems? Supermicro Data Center Building Block Solutions provide AI and compute systems, powered by NVIDIA, AMD, and Intel. From GPU-dense servers to petascale storage, liquid cooling helps optimize performance.
English
10
33
256
2.4M
Adam dev
Adam dev@fullstackdev__·
@PythonPr args packs (1, 2, 3, 4) into a tuple, and sum() adds them. Then the output is 10
English
0
0
2
215
Ankit Aggarwal
Ankit Aggarwal@TechAheadAnkit·
@PythonPr Any statement after return will not execute hence the function never gets call output will be blank If print is outside Output will be 10
English
0
0
1
130
แชร์