Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 808 Bytes

Lists-ultimate-question-2-Python.md

File metadata and controls

26 lines (20 loc) · 808 Bytes
layout topic title language
exercise
Lists
Ultimate Question 2
Python

This is a follow up on the [Ultimate Question 1 problem]({{ site.baseurl }}/exercises/Strings-ultimate-question-1-Python). Copy the function that you used in the previous problem into your code for the current assignment.

Here is a list of different ultimate answers to the the ultimate question of life the universe and everything:

answers = [42, 0, 'money', 'children', 'friends', 'dancing', 'cheetos',
"ERROR: THIS IS A VIOLATION OF SKYNET'S QUERY POLICY. A TERMINATOR WILL
ARRIVE SHORTLY"]

Copy this list into your code and use a for loop to print out:

The ultimate answer to the ultimate question of life, the universe, and everything is: XXX.

for each item in the list, where XXX is the item in the list.