Skip to content

Instantly share code, notes, and snippets.

@krishnaprajapat
Created July 22, 2018 13:54
Show Gist options
  • Save krishnaprajapat/e7142607dc7ecf2001b28c5a5a2a978a to your computer and use it in GitHub Desktop.
Save krishnaprajapat/e7142607dc7ecf2001b28c5a5a2a978a to your computer and use it in GitHub Desktop.
Swap using python
a=input('enter a:')
b=input('enter b:')
t=a;
a=b;
b=t;
print('a after swap:{} '.format(a) )
print('b after swsp:{}'.format(b))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment