Skip to content

Instantly share code, notes, and snippets.

@weeble
Created August 23, 2019 18:39
Show Gist options
  • Save weeble/792c220d9c1a3c94910a3e7e63174e11 to your computer and use it in GitHub Desktop.
Save weeble/792c220d9c1a3c94910a3e7e63174e11 to your computer and use it in GitHub Desktop.
print([f"Hello, {first_name} {last_name[0]}. Dork." for first_name, last_name in [[next(x for x in (input(prompt) for _ in iter(object, None)) if x) for prompt in ["First Name: ", "Last Name: "]]]][0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment