Medium
Format a Full Name
Write
full_name(first, last, middle='') that returns First Middle Last (each capitalised), leaving out the middle name if it is empty. Read three lines (the middle may be - for none) and print the result.Input
Three lines: first, middle, last.
Output
One line.
Sample 1
Input
mim - rahman
Output
Mim Rahman
Sample 2
Input
rafi ul ahmed
Output
Rafi Ul Ahmed
Output appears here