0

i input two Names having first name and last name, but this code is not printing both names ? can anyone help?

fill_it = {} exit_c = True while exit_c: first_name = input('Put your first name') last_name = input('Put your last name') fill_it[first_name] = last_name more = input('If you wanna put more names type yes or No to exit') if more == 'no': exit_c = False for first_name,last_name in fill_it.items(): print(first_name + last_name) input Muhammad Ahad yes Muhammad Imran OutPut MuhammadImran

8th Mar 2019, 2:40 PM
Muhammad Ahad
Muhammad Ahad - avatar
2 Respuestas
+ 1
First advice: post your codes via code playground instead of pasting it into question For the problem: i will post it later through code playground, but seems to have problem with names of variables
8th Mar 2019, 2:59 PM
Maneren
Maneren - avatar
0
okk 👍
8th Mar 2019, 3:05 PM
Muhammad Ahad
Muhammad Ahad - avatar