3
I’m making a command to help read a globe.
entrada = int(input("Quantos centimetros no globo: "))
km = entrada * 425
m = km * 1000
cm = m * 100
print(entrada, "centimetros no globo equivalem a:", km, "quilometros", m,
"metros e", cm, "centimetros.")
input()
Where the command transforms the centimeters of the globe into real numbers (Numerical scale). But often, M is a rather large number and it would be excellent to turn it into scientific notation. Assuming it is 20,000,000 m, it is possible to create a line that "counts" how many zeros there are in the number and return me a value, then make the conversion?
Thank you, it was extremely helpful!
– Darius da costa