Python

Simple Python Program Using While Loop

A While Loop is a mechanisms in Python that repeats an action some number of times until a specified condition evaluates to false. In this video, we’ll write a simple Python program to calculate the entrance price to the zoo for each person depending upon their age and membership.

Syntax:

while condition:
    statements

Verified by MonsterInsights