Dec-01-2017, 06:32 PM
EXAMPLE AS FOLLOWS:
Program: print each word in a quote...
start = 0
space_index = quote.find(" ")
while space_index != -1:
# code to print word (index slice start:space_index)
#Output should look like below:
they
stumble
who
run
fast
.
# [ ] Print each word in the quote on a new line
quote = "they stumble who run fast"
# HOW CAN THIS BE DONE PLEASE HELP!!! USING THE .FIND METHOD
Program: print each word in a quote...
start = 0
space_index = quote.find(" ")
while space_index != -1:
# code to print word (index slice start:space_index)
#Output should look like below:
they
stumble
who
run
fast
.
# [ ] Print each word in the quote on a new line
quote = "they stumble who run fast"
# HOW CAN THIS BE DONE PLEASE HELP!!! USING THE .FIND METHOD