• Sign in
  • Sign up 
  • Welcome
  • FAQ
  • Block Explorer 
  • Night Mode
  • Stolen Accounts Recovery 
  • Change Account Password 
  • Vote for Witnesses 
  • Hive Proposals 
  • OpenHive Chat 
  • Developer Portal 
  • Hive Whitepaper 
  • Privacy Policy
  • Terms of Service
logo
  • Posts
  • Proposals
  • Witnesses
  • Our dApps
LoginSign up
You are viewing a single comment's thread from:

RE: Python Program to Swap Two Variables

  • View the full context
superoo7 (64)in #python-dev • 6 years ago

Won't this method to be easier?

x = 5
y = 10
[x, y] = [y,x]
print(x)
print(y)
6 years ago in #python-dev by superoo7 (64)
$0.00
    Reply 0
    Sort:  
  • Trending
    • Trending
    • Votes
    • Age