Created
October 16, 2019 12:44
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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