FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gittutorial/python/switch_two_variables.py at master · rasoul-code/gittutorial · GitHub
rasoul-code
/
gittutorial
Public
forked from
jadijadi/gittutorial
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
gittutorial
/
python
/
switch_two_variables.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
8 lines (7 loc) · 217 Bytes
Breadcrumbs
gittutorial
/
python
/
switch_two_variables.py
Copy path
File metadata and controls
8 lines (7 loc) · 217 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
# Coud you switch two variables without an extra variable ?'
# Challange accepted!
a
,
b
=
12
,
10
print
(
'a is {}, b is {}'
.
format
(
a
,
b
))
a
,
b
=
b
,
a
print
(
'After switching:
\n
a is {}, b is {}'
.
format
(
a
,
b
))
print
(
"
\n
\n
"
)
Back
|
FazBrowse Home
|
New Git URL