Skip to content

Instantly share code, notes, and snippets.

@samueltcsantos
Created November 10, 2014 16:06
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueltcsantos/a5c20b9ee6f914d11196 to your computer and use it in GitHub Desktop.
Save samueltcsantos/a5c20b9ee6f914d11196 to your computer and use it in GitHub Desktop.
Converter metros para centímetros em Python.
# -*- coding: utf-8 -*-
'''
Autor: Samuel T. C. Santos
Data: 09.11.2014
'''
metros = float (input('Metros? '))
centimetros = metros * 100;
print centimetros, ' cm'
@Paracampo
Copy link

'''

Autor: Amanda Paracampo

Data: 19.11.2023 ###
'''
def cm (x):
return x * 100

y = cm (z)

print("O valor em CM é de", y)

@Sedativ001
Copy link

salvou demais nos estudos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment