initial file upload
This commit is contained in:
20
chap3/seeing_world.py
Normal file
20
chap3/seeing_world.py
Normal file
@@ -0,0 +1,20 @@
|
||||
places_visit = ['Jerusalem', 'London', 'Dublin', 'Tokyo', 'Nome']
|
||||
print(places_visit)
|
||||
|
||||
print(sorted(places_visit))
|
||||
print(places_visit)
|
||||
|
||||
print(sorted(places_visit, reverse=True))
|
||||
print(places_visit)
|
||||
|
||||
places_visit.reverse()
|
||||
print(places_visit)
|
||||
|
||||
places_visit.reverse()
|
||||
print(places_visit)
|
||||
|
||||
places_visit.sort()
|
||||
print(places_visit)
|
||||
|
||||
places_visit.sort(reverse=True)
|
||||
print(places_visit)
|
||||
Reference in New Issue
Block a user