how to convert kg to g using python

Solutions on MaxInterview for how to convert kg to g using python by the best coders in the world

showing results for - "how to convert kg to g using python"
Nicole
09 Oct 2019
1try:
2    Kg = int(input("kg:- "))
3    To_gram = 1000*Kg
4    print(Kg,"Kg = ",To_gram,"G")
5except:
6    print("Mile's must be number")