Post

PythonPython

i
irfan mohammad

Posted on 23rd April 2024|16 views

0
votes

What Are The Loops In Python?

I want to know what are the loops are there in python

Answers
P
chris bons

Posted on 23rd April 2024

There are three different loops in Python they are

  1. For loop:

This loop executes a series of lines and also abbreviates the code which handles the loop variable. 

  1. While loop:

This loop tests the condition ere executing that loop, if the condition is true, then it repeats that group of statements. 

  1. Nested loops:

A loop inside other loop is called nested loop.  

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos