Post

Python Programming
Python Programming@PythonPr·
Thank you all for taking the time to answer this question.👍👍👍
English
0
0
3
1.4K
Ankit Aggarwal
Ankit Aggarwal@TechAheadAnkit·
@PythonPr 7, local variable scope no impact of a and b outside function.
English
0
0
5
635
Supermicro
Supermicro@Supermicro·
Can your AI infrastructure run itself? SuperCloud Software Suite within Data Center Building Block Solutions unifies infrastructure control, automates deployment pipelines, empowers self-service AI tools, and supports GPU cloud operations.
English
15
30
318
2.9M
Adam dev
Adam dev@fullstackdev__·
@PythonPr The output is **7**: the function adds 4 and 3, and the variables `a = 5` and `b = 5` are not used.
English
0
0
2
644
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
437
361
3.2K
27.4M
Jimmy Fikes
Jimmy Fikes@akajim·
@PythonPr 7. 4 and 3 are passed to the function. The return is 4 + 3, so, 7.
English
0
0
2
453
Starlink
Starlink@Starlink·
With more than 8,500 satellites in orbit, Starlink provides connectivity through harsh weather conditions and natural disasters. Order online in under 2 minutes.
English
1.9K
3.6K
25.3K
72.2M
Biel Men
Biel Men@BielMenHaha·
@PythonPr Inside the function, those named variables act as local scope. If there's no variables into the local, will seek in global. If there is not either, will raise Exception. So, the given arguments are 4 and 3, adding and returning them, not using the global 5 and 5.
English
0
0
0
48
Shimo
Shimo@e_rismdisk·
@PythonPr 仮にa=5,b=5をadd_n関数内で行うと固定値を返す関数になる。 Pythonってconstとかってあんの?
日本語
0
0
0
3
共有