Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list = []
- n = int(input("Ile liczb chcesz wprowadzic?"))
- for i in range(0, n):
- list.append(float(input()))
- print("indeksy")
- for i in enumerate(list):
- print(i)
- print("odwrotnie")
- for i in reversed(list):
- print(i)
- list.sort()
- print("posortowane")
- for i in list:
- print(i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement