Ques) what is the range function? what is syntax and some example

Ans:- The range() function returns a sequence of numbers, starting from 0 by default, and increments by 1 (by default), and stops before a specified number. The most common use of it is to iterate sequence on a sequence of numbers using Python loops.

The syntax of the Python programming language is the set of rules which defines how a Python program will be written.

EX: >>> print(“Hello, World!”)
Hello, World!

3 Likes

Correct. keep it up :+1: