A lot of computations involve processing a string one character at a time. Often they start
at the beginning, select each character in turn, do something to it, and continue until the
end. This pattern of processing is called a traversal. One way to write a traversal is with a
while loop:
index = 0
while index < len (fruit):
letter = fruit[index]
print (letter)
index = index + 1
+3
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “A lot of computations involve processing a string one character at a time. Often they start at the beginning, select each character in ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » A lot of computations involve processing a string one character at a time. Often they start at the beginning, select each character in turn, do something to it, and continue until the end. This pattern of processing is called a traversal.