# LPTHW - Ex 34 - Questionnaire Program

I wrote a questionnaire program for this exercise that gives a brief explanation of cardinal and ordinal numbers, asks the questions in the exercise regarding the list then evaluates the answers you input. If anyone wants it when doing this exercise, it’s a bit long.

``````
animals = ['bear', 'python', 'peacock', 'kangaroo', 'whale', 'platypus']

print("""\nFirst a brief explaination of cardinal and ordinal numbers:
the ordinal number is the position of the element in a list, eg. first, second,
third, etc.
the cardinal number begins at 0 and is an unordered number, eg. one, two, three
""")

print(f"""\nNow I'm going to ask you a series of questions relating to
this list; {animals}""")

print("What is the animal at 1?")
one = input('> ')
print("What is the third animal?")
third = input('> ')
print("What is the first animal?")
first = input('> ')
print("What is the animal at 3?")
three = input('> ')
print("What is the fifth animal?")
fifth = input('> ')
print("What is the animal at 2?")
two = input('> ')
print("What is the sixth animal?")
sixth = input('> ')
print("What is the animal at 4?")
four = input('> ')

print("\n Now, let's see how you did!")

print(f"Question one: You answered {one}")
if one == animals:
else:
print(animals)
print(f"Question two: You answered {third}")
if third == animals:
else:
print(animals)
print(f"Question three: You answered {first}")
if first == animals:
else:
print(animals)
print(f"Question four: You answered {three}")
if three == animals:
else:
print(animals)
print(f"Question five: You answered {fifth}")
if fifth == animals:
else:
print(animals)
print(f"Question six: You answered {two}")
if two == animals:
else:
print(animals)
print(f"Question seven: You answered {sixth}")
if sixth == animals:
else:
print(animals)
print(f"Question eight: You answered {four}")
if four == animals:
else:
thank you 