. Write apython
program that uses a user defined function
that accepts name and gender (as M for Male,
F for Female) and prefixes Mr/Ms on the basis of
the gender
Answers
Answered by
6
Answer:
def(gender, name):
if gender == "M":
return "Mr. {name}".format(name = name)
elif gender == "F":
return "Mrs. {name}".format(name = name)
else :
return name
HOPE MY ANSWER HELPS U. PLS MAKE MY ANSWER AS BRAINLIEST.
Similar questions