Skip to content

Instantly share code, notes, and snippets.

@maluta
Created October 3, 2014 14:30
Show Gist options
  • Save maluta/d3a0577bab828b487311 to your computer and use it in GitHub Desktop.
Save maluta/d3a0577bab828b487311 to your computer and use it in GitHub Desktop.
'''
def -> define uma funçao
len() -> retorna o numero de caracteres de uma palavra
if -> verifica uma condiçao
'''
def introdução():
mensagem1 = "| Empresa"
mensagem2 = "| Bem-vindo ao xxxxxxx"
if len(mensagem1) > len(mensagem2):
borda = len(mensagem1)
else:
borda = len(mensagem2)
print("-"*borda)
print(mensagem1)
print(mensagem2)
print("-"*borda)
'''
chamando a funcao
'''
introdução()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment