# Homework 2-4 starter code.

# Your name here:

def isOdd(num):
	'''takes an integer as argument and returns True if it is odd, or False if it is even.'''
    return num%2 == 1


def sumThrough(arg):
	'''returns the sum of integers from 1 to arg.'''
    #TODO: complete the body
    return 0	# not the correct answer 

#Test your sumThrough function here
print('The sum of integers from 1 to 100 is', sumThrough(100))
print('The sum of integers from 1 to 1,000,000 is', sumThrough(1000000))


def sumOddThrough(arg):
	'''returns the sum of odd integers from 1 to arg.'''
    #TODO: complete the body
    return 0	# not the correct answer

print('The sum of odd integers from 1 to 100 is', sumOddThrough(100))


def isAnElementOf(a, myList):
	''' returns True if an integer a is in a list of integers myList, False otherwise.'''
    #TODO: complete body
    return False	# not the correct answer


def isASubListOf(myList1, myList2):
	''' returns True if every element in a list of integers myList1
		is also an element in another list of integers myList2'''
    #TODO: complete body
    return False	# not the correct answer



