Run Code
|
API
|
Code Wall
|
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
MultiDeco
building a basic calculator
Replace
GayChicken
PyProperty
on_off_3
how far light travels in centimeters in one nanosecond
Gettinginput from users
Shabnam_ticket
Problem Name: single_digit