Created
April 3, 2017 17:16
-
-
Save zokis/8c3a584f567119fc6f58c008ed49d9f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print ('____________________________________________________________________') | |
print ('Olá, bem vindo ao assistente controlador de estoque') | |
print ('Insira os dados solicitados para realizar a contagem diária de peças') | |
print ('____________________________________________________________________') | |
pecas = [ | |
{'name': 'Tela iPhone 6 Branco', 'qtd': 5}, | |
{'name': 'Tela iPhone 6 Preto', 'qtd': 5}, | |
{'name': 'Baterias iPhone 6', 'qtd': 5}, | |
] | |
for pca in pecas: | |
n_pcs = int(input('%s: ' % pca['name'])) | |
if n_pcs < pca['qtd']: | |
iPhone6Branco = pca['qtd'] - n_pcs | |
print ('Repor ' + str(n_pcs) + ' ' + pca['name']) | |
elif n_pcs >= pca['qtd']: | |
print ('Não há necessidade de repor o Estoque de ' + pca['name']) | |
else: | |
print ('ERRO') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment