Ultima attività 1737576185

lyro ha revisionato questo gist 1737576185. Vai alla revisione

1 file changed, 26 insertions

file.py(file creato)

@@ -0,0 +1,26 @@
1 + # games = ["asda", "asdadwdadaadsa", "fdoijghiofdujgfiodfujgf", "sdoifgjodsjgfdsjfs"]
2 +
3 + # popped = games.pop()
4 +
5 + # print(popped)
6 + # print(games)
7 +
8 + games = ['hunt: showdown', 'dayz', 'valheim', 'overwatch', 'cs go']
9 + print(games[-1].upper())
10 + games[-1] = 'nuke'
11 + print(games[-1])
12 + games.append('rust')
13 + print(games)
14 + games.insert(0, 'zomboid')
15 + print(games)
16 + del games[-1]
17 + print(games)
18 + games.remove('dayz')
19 + print(games)
20 + del_games = games.pop()
21 + print(del_games)
22 + print('---------------------\n\n')
23 + print(games)
24 + games.sort()
25 + print(games)
26 +
Più nuovi Più vecchi