Question: Question 4 4 pts What would be the expected output of the following code? l i = [ h i , hello,hey ] for s
Question
pts
What would be the expected output of the following code?
hello,hey
for in :
try:
prints
except IndexError:
printString is too short"
else:
printThis string has more than characters"
Note that in the answers represent line breaks.
"String is too short" "I" "This string has more than characters" "String is too short"
"String is too short"
hi "This string has more than characters"
hi "hello", "hey"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
