Answer in Python for phil #250018
Write a program that allows the user to input his/her full name (assuming that the last
word will be the surname). The program should then respond by telling the user the
i) The number of names that he/she has.
ii) The user’s firstname.
iii) The user’s surname.
iv) The full name without the spaces.
v) The number of characters in the name.
vi) The number of unique characters in the name.
name = input("Enter your full name: ") names = name.split() print("Your first name is", names) print("Your surname is", names[-1]) full_name = ''.join(names) print("Your full name w/o spaces is:", full_name) print("It has", len(full_name), "characters") chars = set(full_name.lower()) print("It has", len(chars), "unique characters")