Question: word = 'more' index = 0 while index < len(word): print(word[index]) index = index + 1 Question 1 options: It would generate an IndexError m
word = 'more' index = 0 while index < len(word): print(word[index]) index = index + 1
Question 1 options:
|
|
It would generate an IndexError
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
m o r e
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
m o r
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
o r e
Which of the following is the correct program to count the number of occurrences of the letter l in the string 'yellow'? Question 2 options:
|
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
