trouble with adapting to python 2.6
I understand no h/w related questions can be asked but i have struggle for several days over these 2 problems and wondering if anyone can show me and explain it to me.  If anyone can i appreciate it.  

# An airport has three different terminals, and each flight is assigned to
# one of the three terminals  based on the flight type, the length of the
# flight, and whether or not the flight has a stopover.
# Each flight is either domestic (D) or international (I), and each 
# flight either has a stopover or does not. The length of a fight is
# measured by the number of minutes the flight takes.
#
#The rules for assigning flights to terminals are below:
# 1) All International flights leave from terminal 1.
# 2) Domestic flights that are longer than 120 minutes and have a
#    stopover leave from terminal 2
# 3) All other flights leave from terminal 3 
#
# Complete the function below so that the correct terminal number is
# returned based on the input. 

# Function: flightTerminal
# Inputs:
# typeOfFlight will be a string, either "I" for international or "D"
#       for domestic
# lengthOfFlight will be integer indicating the flight time in minutes
# stopover is a Boolean (either True or False)
#
# Output:
#
# The function should return the integer 1,2, or 3 indicating the number
# of the terminal to which the flight is assigned
#

def flightTerminal (typeOfFlight, lengthOfFlight, stopover):
    pass# You can remove this line when you write your code

# Fill in your code here, remember to indent properly



# Testing code
print flightTerminal ("I", 120, False) #Terminal 1
print flightTerminal ("D", 120, True) #Terminal 3
print flightTerminal ("D", 122, False) #Terminal 3
print flightTerminal ("D", 140, True) #Terminal 2



# For this question, you will complete a function that takes two lists
# of numbers as input. It returns a single list which is the
# component-wise sum of the input lists. For example:
# addLists([1,2,3,4], [1,1,1,1])
# will return the list [2,3,4,5]
#
# You can assume that the input lists are the same size.
#
# Hints: Functions that work on lists that will be helpful include
# len(aList) which returns the size of aList
# aList.append(item) which adds item onto the end of aList
#
# Comments included below may help you figure out how complete the
# function

def addLists( List1, List2):
    pass # You can remove this line when you write your code

    # Complete this function!
    #
    # Create an empty list

    # for each pair of numbers at the same index in the lists
    # add the pair together and append the result to your new list
    
    # return the new list you made


# Test code should print [2,3,4,5,7]
print addLists([1,2,3,4,5],[1,1,1,1,2])


trouble with adapting to python 2.6
===

I understand no h/w related questions can be asked but i have struggle for several days over these 2 problems and wondering if anyone can show me and explain it to me.  If anyone can i appreciate it.  

# An airport has three different terminals, and each flight is assigned to
# one of the three terminals  based on the flight type, the length of the
# flight, and whether or not the flight has a stopover.
# Each flight is either domestic (D) or international (I), and each 
# flight either has a stopover or does not. The length of a fight is
# measured by the number of minutes the flight takes.
#
#The rules for assigning flights to terminals are below:
# 1) All International flights leave from terminal 1.
# 2) Domestic flights that are longer than 120 minutes and have a
#    stopover leave from terminal 2
# 3) All other flights leave from terminal 3 
#
# Complete the function below so that the correct terminal number is
# returned based on the input. 

# Function: flightTerminal
# Inputs:
# typeOfFlight will be a string, either "I" for international or "D"
#       for domestic
# lengthOfFlight will be integer indicating the flight time in minutes
# stopover is a Boolean (either True or False)
#
# Output:
#
# The function should return the integer 1,2, or 3 indicating the number
# of the terminal to which the flight is assigned
#

def flightTerminal (typeOfFlight, lengthOfFlight, stopover):
    pass# You can remove this line when you write your code

# Fill in your code here, remember to indent properly



# Testing code
print flightTerminal ("I", 120, False) #Terminal 1
print flightTerminal ("D", 120, True) #Terminal 3
print flightTerminal ("D", 122, False) #Terminal 3
print flightTerminal ("D", 140, True) #Terminal 2



# For this question, you will complete a function that takes two lists
# of numbers as input. It returns a single list which is the
# component-wise sum of the input lists. For example:
# addLists([1,2,3,4], [1,1,1,1])
# will return the list [2,3,4,5]
#
# You can assume that the input lists are the same size.
#
# Hints: Functions that work on lists that will be helpful include
# len(aList) which returns the size of aList
# aList.append(item) which adds item onto the end of aList
#
# Comments included below may help you figure out how complete the
# function

def addLists( List1, List2):
    pass # You can remove this line when you write your code

    # Complete this function!
    #
    # Create an empty list

    # for each pair of numbers at the same index in the lists
    # add the pair together and append the result to your new list
    
    # return the new list you made


# Test code should print [2,3,4,5,7]
print addLists([1,2,3,4,5],[1,1,1,1,2])

