Best Laptop

Browsed by
Tag: python while loop

Python while loop

Python while loop

In this Python Tutorial, we will see the use of Python while loop. But before that lets ask what exactly is loop and why do we need it. Loop is something which performs some activity as long as you want it to be done. For example, if we want to play tennis if it’s not raining outside, then we may write something like this: while its_not_raining_outside: lets_play_tennis() Indentation rules work here just like if-else statement we saw in previous session….

Read More Read More

Python 3.11.1 Features