Skip to content

Instantly share code, notes, and snippets.

skrito_stevilo = 6
poskus = int(input("Vpiši število: "))
stevilo_poskusov = 1
while True:
if skrito_stevilo == poskus:
print("Čestitke, zadeli ste skrito število")
break
elif stevilo_poskusov == 5:
uporabniki = ["Janez", "Petra", "Mojca"]
print "Uporabnik na mestu st. 1:", uporabniki[1]
for uporabnik in uporabniki:
print "Uporabnik je:"
print uporabnik
for i in range(0, 10):
if i == 3:
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