Created
September 22, 2016 16:09
-
-
Save luigidon/2b787f5b573b986f4e771f3899238629 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
km = 0 | |
mil = 0 | |
choice = "da" | |
print("Pozdravljen uporabnik! Veseli nas, da ste se odlocili za nas program s pomocjo katerega boste lahko pretvorili enote.") | |
while choice == "da": | |
km = int(raw_input("Vpisite stevilo kilometrov!")) | |
mil = km * 0.621371 | |
print("Odgovor je: " + str(km) + "km" + " je " + str(mil) + "milj") | |
print("odgovor je: %skm je %smilj" % (str(km), str(mil))) | |
choice = raw_input("Ali zelite narediti novo pretvorbo? (da/ne)") | |
if choice == "ne": | |
print("Hvala za sodelovanje! Na svidenje.") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment