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
trial
Attempt to fork bomb server
fibonacci_2
Roman numrals
Chain length calculator
Recurring function checker
tree generator
Glimpse Of Numpy Python
on_off
kkk