Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f=open('prosjecna.txt',"w")
- try:
- temp1=input("07h: ")
- temp2=input("13h: ")
- temp3=input("19h: ")
- ukupno = temp1+temp2+temp3
- prosjecna = ukupno/3
- f.write(prosjecna)
- finally:
- print("Prosjecna temperatura je upisana. Izlazim")
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment