0

Pls read the documentation below for the help and assist.

""" Am trying to create a program whose take my brothers and sisters names as an user input then return with surname with each inputted user names until the loop reaches 10 firstname with surname """ def fullname(surname): a = 0 while a <= 10: first_name = input("Enter your firstname: ") b = first_name + surname a += 1 return b print(fullname( " ABDULMALIK "))

21st Oct 2021, 8:47 AM
Muhammad Abdulmalik
Muhammad Abdulmalik - avatar
2 Réponses
+ 3
a = 0 while a <= 10: def fullname(surname): first_name = input("Enter your firstname: ") b = first_name + surname return b a += 1 print(fullname( " ABDULMALIK "))
21st Oct 2021, 9:05 AM
Simba
Simba - avatar
+ 1
Simba I really appreciated your effort, it's working
21st Oct 2021, 9:11 AM
Muhammad Abdulmalik
Muhammad Abdulmalik - avatar