# first step is getting inputs from the user: firstName = input("Enter your first name: ") lastName = input("Enter your last name: ") title = input("Enter your preferred title: ") # capitalize the first letter only: firstName = firstName.capitalize() title = title.capitalize() # capitalize the whole word: lastName = lastName.upper() print(f"Greetings, {title}. {firstName} {lastName}")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter