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 "))
2 Answers
+ 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 "))
+ 1
Simba I really appreciated your effort, it's working