subject
Computers and Technology, 02.02.2022 16:30 bri663

Given a string s of any length where all letters are lowercase. Write code which prints the index location of each letter 'o' in the string, one location per line of output.
Hint: enumerate() is your friend!
Given the string s:

happiness is when what you think, what you say, and what you do are in harmony. - gandhi

the output will be:
24
40
58
62
75

Use the input statement in the skeleton:
a = input("Input a string: ")

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:40
Most networking media send data using in which data is represented by only two discrete states: 0s and 1s. a. digital signals b. contiguous signals c. ramp signals d. exponential signals
Answers: 1
question
Computers and Technology, 22.06.2019 15:30
What is a costume plot? why is it important to a film or theater production?
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
question
Computers and Technology, 22.06.2019 22:40
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
You know the right answer?
Given a string s of any length where all letters are lowercase. Write code which prints the index...
Questions
question
Mathematics, 06.03.2020 23:27
question
Mathematics, 06.03.2020 23:27
Questions on the website: 13722363