Bob103

PY_#12

Jul 2nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. sp = [0] * int(input('size='))
  2. for i in range(len(sp)):
  3.     sp[i]=int(input())
  4.  
  5. tem=max(sp)
  6. sp[sp.index(max(sp))] = sp[0]
  7. sp[0]=tem
  8. print(sp)
Advertisement
Add Comment
Please, Sign In to add comment