Question: are nested while loops bad?
Answer: However, the way you nest the loops can have direct performance impacts on your code. So nesting loops is not necessarily bad, but it can definitely have noticeable effects on performance especially after some arbitrary number n loops.