# Homework 2-5 starter code.

# This is how you enter comments in Python
# Things after the # sign until the end of line is not part of the program

# 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


# Task 1-a
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))

# Task 1-b
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))


# Task 2-a
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


# Task 2-b
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



