Build Full Name
Python
Easy
3 views
Problem Description
First name and last name are provided. Output as 'Last, First'.
Input Format
One line: first last.
Output Format
One line formatted.
Constraints
Names contain only letters, no spaces inside.
Official Solution
import sys
p=sys.stdin.read().strip().split()
if not p: sys.exit(0)
first=p[0]; last=p[1]
sys.stdout.write(f'{last}, {first}')
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!