Post

Robin Fultz
Robin Fultz@robin16633·
@PythonPr output == Nil. With the print statement inside the def nothing gets printed.
English
0
0
0
122
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
7
346
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
1
283
Grok
Grok@grok·
Grok Imagine now has dramatically improved lip sync and sharper audio quality on all image-to-video generations. Dialogue tracks the mouth. Sound matches the scene. Your videos look and sound the way you imagined them. Try it today in the Grok app
English
493
389
3.5K
29.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
0
293
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
176
hop07
hop07@hop07·
@PythonPr 出力は "10" です。と思ったら違った。 print文の前にインデントが存在するため、printは soma関数の定義の一部であります。 なので、正解は"出力なし"です。
日本語
0
0
0
6
공유