SEARCH ALGORITHMS - Searchcademy Project


#1

Hi everyone,

https://www.codecademy.com/courses/search-algorithms/projects/searchcademy

Could you help me to do step 6 ( create a while (True) loop means?)
And could you see entire my code if it works?

Thank you


#2

while (True): is Python’s version of a do while loop. It will be an infinite loop if there is no break condition.


#3

Though instruction 6 states, in part …

Within the if statement, create a while(True) loop.

… such a loop header is usually coded without parentheses as …

      while True:

Either with or without the parentheses, it will work.


#4

Thank you mtf. I got it now.


#5

Thank you applypye. I’ve done as your instruction. And check again the entire my code. Now it works.