Skip to content

Instantly share code, notes, and snippets.

@mathandy
Created July 6, 2020 23:18
Show Gist options
  • Save mathandy/b7e3097fe245a0b7ca70c0b70e12ee19 to your computer and use it in GitHub Desktop.
Save mathandy/b7e3097fe245a0b7ca70c0b70e12ee19 to your computer and use it in GitHub Desktop.
firstname = input("What is your first name? ")
lastname = input("What is your last name? ")
fullname = firstname + " " + lastname
age = int(input("What is your age? "))
address = input("What is your address? ")
print("Hi {}.".format(fullname))
print("Your address is {}.".format(address))
if age >= 18:
print("You are {} years old and you can vote.".format(age))
else:
print("You are {} years old and you cannot vote yet.".format(age))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment