Created
November 10, 2014 16:06
-
-
Save samueltcsantos/a5c20b9ee6f914d11196 to your computer and use it in GitHub Desktop.
Converter metros para centímetros em Python.
This file contains 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
# -*- coding: utf-8 -*- | |
''' | |
Autor: Samuel T. C. Santos | |
Data: 09.11.2014 | |
''' | |
metros = float (input('Metros? ')) | |
centimetros = metros * 100; | |
print centimetros, ' cm' |
'''
Autor: Amanda Paracampo
Data: 19.11.2023 ###
'''
def cm (x):
return x * 100
y = cm (z)
print("O valor em CM é de", y)
salvou demais nos estudos
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Na verdade os 2 estão errados Se 1um metro corresponde às 100 centímetros 243m metros corresponde a 24300cm