Skip to content

Instantly share code, notes, and snippets.

@FrederickGeek8
Created October 16, 2019 12:44
Show Gist options
  • Save FrederickGeek8/6013a70a4defede02fb22f06ede4094c to your computer and use it in GitHub Desktop.
Save FrederickGeek8/6013a70a4defede02fb22f06ede4094c to your computer and use it in GitHub Desktop.
Solutions for the "easy" problems in the Fall 2019 SPLICE Club "Get to know Python" workshop
def say_hello():
for i in range(10):
print("Are we there yet")
# say_hello()
def is_even(x):
if x % 2 == 0:
return True
else:
return False
def is_odd(x):
if x % 2 == 1:
return True
else:
return False
# print(is_even(5))
# print(is_even(2))
def first_last():
first_name = input('Enter your first name: ')
last_name = input('Enter your last name: ')
print('Hello ' + first_name + ' ' + last_name)
first_last()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment