Advertisement
felix_dmx

python pedidos

May 26th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. def pizza():
  2.     tamanho = input("Tamanho: ")
  3.     pedido = {}
  4.     ingredientes = ""
  5.     while ingredientes != "sair":
  6.         ingredientes = input("Ingrediente: ")
  7.         if ingredientes != "sair":
  8.             pedido["tamanho"] = tamanho
  9.             pedido["ingrediente"] = ingredientes
  10.     return pedido
  11.  
  12. sabores = pizza()
  13. print(sabores)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement