Skip to content

video not played or not found error
click on direct switch

Hosted by Dailymotion. For legal issues: Copyright Center · DMC · Instant Removal

Lecture 56: A Range Function in Python

N
Nafees AI Lab

17 Views • May 20, 2025

Description

The range() function in Python generates a sequence of numbers. It is commonly used in loops to iterate a specific number of times. The function can take one, two, or three arguments:
range(stop):
Generates numbers from 0 up to (but not including) stop, incrementing by 1.
range(start, stop):
Generates numbers from start up to (but not including) stop, incrementing by 1.