0
While I study Python, time or other unpacking my own exercises. Only this time I 'Stopped' when I decided to do the code below.
for c in range (3):
bd = {}
nome = input('Insira seu nome: ')
sobrenome = input('Insira seu sobrenome: ')
bd [nome] = sobrenome
print ()
print (bd)
The question is, how do I feed the dictionary using the for (for example) if at the end of loop she only shows me the last key-value pair that I typed in?
Hello "user145470", I am studying other technologies in which the word DICTIONARY appears frequently, so when asking a question here in the community I ended up getting confused. I know the difference between library and dictionary but still thank you for the initiative. The code worked!
– Fernando Barros