Question: Question 4 4 pts What would be the expected output of the following code? l i = [ h i , hello,hey ] for s

Question 4
4 pts
What would be the expected output of the following code?
li=[hi,hello,hey]
for s in 2i :
try:
print(s[3])
except IndexError:
print("String is too short")
else:
print("This string has more than 3 characters")
Note that "/" in the answers represent line breaks.
"String is too short" / "I" / "This string has more than 3 characters" / "String is too short"
"String is too short"
"hi"/ "This string has more than 3 characters"
["hi", "hello", "hey"]
 Question 4 4 pts What would be the expected output of

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!