Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b9eb200

Browse files
author
Amogh Singhal
authored
Update Python_Programming_Quiz.md
1 parent 3936efb commit b9eb200

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎Python_Programming_Quiz.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,13 @@ You can also use the step argument to count backwards. `step` becomes a negative
228228
[20, 15]
229229
>>>
230230
```
231+
232+
#### 13. How can you declare multiple assignments in one statement?
233+
234+
This is one of the most asked interview questions for Python freshers<br>
235+
There are two ways to do this:
236+
237+
__First:__ This assigns 3, 4, and 5 to a, b, and c respectively <br>
238+
` >>> a,b,c=3,4,5` <br>
239+
__Second:__ Ths assigns 3 to a, b, and c <br>
240+
`>>> a=b=c=3`<br>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /