def count(nNum):

“”"This function prints out the numbers from 1 to nNum”"”

x = 1

while x <: nNum :

print x

x = x +1

should be

def count(nNum):

“”"This function prints out the numbers from 1 to nNum”"”

x = 1

while x < nNum :

print x

x = x +1