Question: 3 ) What is an infinite while loop, and why does it happen? Output your answer using a print statement. Your output should look like

3) What is an "infinite" while loop, and why does it happen?
Output your answer using a print statement. Your output should look like this:
"""
# YOUR CODE FOR 3) GOES HERE
print("
########## Question 4 ##########
")
"""
4 Split the string below into a list of tokens. Then use two for loops (one embedded in the other) to
loop over the list of tokens, and within each token, loop over the characters and print them out
so that it looks like the output below. Your output should look like this (but for all the words, not just two):
t
h
e
u
n
e
x
a
m
i
n
e
d
"""
socrates = "The unexamined life is not worth living"
# YOUR CODE FOR 4) GOES HERE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!