Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def exercise1(nome):
- print("hello, %s" % nome)
- def exercise2():
- nome = input("Digite seu nome: ")
- idade = input("Digite sua idade: ")
- print("ola, %s de %s anos" % (nome, idade))
- option = int(input("Escolha um exercicio: "))
- if option == 1:
- exercise1("George")
- exercise1("Ferdinand")
- elif option == 2:
- exercise2()
- elif option == 3:
- print("hai hai")
- else:
- print("Escolha uma opcao valida")
Advertisement
Add Comment
Please, Sign In to add comment