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
251
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
197
Robin Fultz
Robin Fultz@robin16633·
@PythonPr output == Nil. With the print statement inside the def nothing gets printed.
English
0
0
0
55
Grok
Grok@grok·
From deep questions to stunning visuals - Grok does it all. Sign up and start imagining instantly.
English
0
369
4.2K
19.6M
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
212
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
128
Teilen