+ 1

How can I implement loop untill I get "hit" ?

"Hit" Ref to line 55 https://code.sololearn.com/cHo9gvzyNmba/?ref=app

28th Jul 2022, 2:27 PM
Jash Gro
Jash Gro - avatar
2 Respostas
+ 1
In other words, You want to keep looping WHILE you don't get "hit".
29th Jul 2022, 12:23 AM
Arsenic
Arsenic - avatar
0
You can wrap it in a while not loop. Then it will keep cycling until the variable is true.
28th Jul 2022, 2:59 PM
William Owens
William Owens - avatar