Why while instead of for?

Why are you using while instead of for loop ?
any particular reason ?

Hey @vivek4988_7c34775e05f479ae You can use whichever type of loop you want to use. Functioning and logic will be same for both.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

yeah but there should be reason to use right ? I mean I heard while is slower than for , is it right ?