Advertisement
Guest User

11

a guest
Nov 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. list = []
  2. n = int(input("Ile liczb chcesz wprowadzic?"))
  3. for i in range(0, n):
  4. list.append(float(input()))
  5. print("indeksy")
  6. for i in enumerate(list):
  7. print(i)
  8. print("odwrotnie")
  9. for i in reversed(list):
  10. print(i)
  11. list.sort()
  12. print("posortowane")
  13. for i in list:
  14. print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement