FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pythonprogram/swaping of variables at master · deepcodespythonmorethenu/pythonprogram · GitHub
deepcodespythonmorethenu
pythonprogram
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pythonprogram
/
swaping of variables
Copy path
More file actions
More file actions
Latest commit
History
History
History
16 lines (12 loc) · 333 Bytes
Breadcrumbs
pythonprogram
/
swaping of variables
Copy path
File metadata and controls
16 lines (12 loc) · 333 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Python program to swap two variables
x = 5
y = 10
# To take inputs from the user
#x = input('Enter value of x: ')
#y = input('Enter value of y: ')
# create a temporary variable and swap the values
temp = x
x = y
y = temp
print('The value of x after swapping: {}'.format(x))
print('The value of y after swapping: {}'.format(y))
Back
|
FazBrowse Home
|
New Git URL