Advertisement
LincolnArantes

menu em python

Oct 16th, 2019
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.82 KB | None | 0 0
  1.    
  2. # -*- coding: utf-8 -*-
  3. print('Seja bem vindo ao sistema menu v.1')
  4.  
  5.  
  6. from time import sleep
  7. print('=-=' * 10)
  8.  
  9. opcao = 0
  10. while opcao != 5:
  11.     print('=-=' * 10)
  12.     print('''
  13.     [1] Gerar imagens Geometricas
  14.     [2] Gerar imagens a partir de outra imagem
  15.     [3] Gera mais imagens atraves de recorte
  16.     [4] novos numeros
  17.     [5] sair do programa''')
  18.     opcao = int(input('>>>> Selecione '))
  19.     if opcao == 1:
  20.        
  21.         print('selecionado opção 1 ')
  22.  
  23.        
  24.  
  25.     elif opcao == 2:
  26.        
  27.                print('selecionado opção 2 ')
  28.  
  29.  
  30.              
  31.    
  32.     elif opcao == 3:
  33.        
  34.         print('selecionado opção 3 ')
  35.        
  36.  
  37.    
  38.     elif opcao == 4:
  39.  
  40.         print('selecionado opção 4 ')
  41.        
  42.    
  43.     elif opcao == 5:
  44.         print('Finalizando...')
  45.        
  46.     else:
  47.         print('Opcao invalida. Tente novamente.')
  48.     print('=-=' * 10)
  49.     sleep(3)
  50. print('Fim do programa')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement