Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # coding:utf-8
- #THEME FOR SUBLIME-TEXT = PACIFIC
- def conversao_km_para_metros (kmetros):
- metros = kmetros*(10**3)
- return(metros)
- print("\t\t\t-- TESTE --\n")
- kmetros = float(input("Digite a quant kmetros: "))
- if len(str(kmetros)) > 0:
- if kmetros > 0:
- print("Metros: ", conversao_km_para_metros(kmetros))
- elif kmetros < 0:
- print("Não tem como converter algo negativo\n")
- else:
- print("Não reconhecemos isto\n")
- else:
- print("Você não digitou nada\n")
- input("Esperando teclar algo\n")
Add Comment
Please, Sign In to add comment