Last active
April 30, 2020 15:25
-
-
Save steffanydev/a79c3320b1ff193cad24875308bbedc4 to your computer and use it in GitHub Desktop.
Hotel Bom Descanso - Software para reserva de quartos
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
''' | |
Hotel Bom Descanso - Software para reserva de quartos | |
''' | |
quartos = {} | |
contiua_cadastro = "SIM" | |
while (contiua_cadastro.upper() == "SIM"): | |
quarto = input('Informe o número do quarto: ') | |
hospede = input('Informe o nome do hóspede: ') | |
if quarto in quartos: | |
print('JÁ EXISTE ESSE QUARTO CADASTRADO, ESCOLHA OUTRO') | |
continue | |
else: | |
print('RESERVANDO QUARTO...') | |
quartos[quarto] = hospede.upper() | |
contiua_cadastro = input('Deseja cadastrar mais um quarto? (Sim ou Não) \n') | |
else: | |
print("\n") | |
# Relatórios dos quartos reservados | |
print("RELATÓRIOS DOS QUARTOS RESERVADOS") | |
for key, value in quartos.items(): | |
print(f'QUARTO Nº {key} = {value}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment