Generation

testsSat, 27 May 2023

# Agenda - Dicionário # Índice - Chave # Valor - Va. Registrado x = 0 agenda = {} print(type(agenda)) while x < 5: nome = input('Digite o nome: ') telefone = input('Digite o telefone: ') agenda.update({nome: telefone}) x += 1 for i in range(5): print(agenda[nome], end='') print(agenda[telefone])

# Agenda - Dicionário # Índice - Chave # Valor - Va. Registrado x = 0 agenda = {} print(type(agenda)) while x < 5: nome = input('Digite o nome: ') telefone = input('Digite o telefone: ') agenda.update({nome: telefone}) x += 1 for i in range(5): print(agenda[nome], end='') print(agenda[telefone])

Questions about programming?Chat with your personal AI assistant