Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Aufgabe 16
#Python 2.7.17 inv = [] # Inventory def give(item): inv.append(str(item)) def take(item): inv.remove(str(item)) def viewInv(): print "Current inventory:" for item in inv: print item give("Sword") give("Dagger") take("Sword") give("Hammer") viewInv()
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
a
Supermarket prices and stock
Looking at the /etc folder... :)
Nun
20/2
cat
Execute linux commands
My Temp Converter
binary_4
PyDeco
Please log in to post a comment.