Created
July 14, 2016 17:18
-
-
Save rok-povsic/82bc0b3ec52854df9d153e07949cb0df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
avtomobili = {"Golf": 20000, | |
"BMW": 40000, | |
"Porsche": 70000} | |
print "Cena BMW-a je:", avtomobili["BMW"], "EUR" | |
avtomobili["Ferarri"] = 200000 | |
print "Cena Ferarri-ja je:", avtomobili["Ferarri"] | |
print avtomobili | |
print avtomobili.keys() | |
print avtomobili.values() | |
print "St. avtomobilov:", len(avtomobili) | |
for avto in avtomobili.keys(): | |
print avto, avtomobili[avto] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment