Computer Science, asked by kirtisingh2420, 1 month ago

what is the output of range (1,6​

Answers

Answered by amitnrw
0

Given :   Range (1 , 6)

To Find : output

Solution:

Range function in python used to create Sequence of numbers

Range (1 , 6)

output  = 1 , 2 , 3 , 4 , 5

range(start, stop, step)

 

start        Its Optional.

An integer number specifying at which position to start.

Default is 0 ( if not specified)

stop    Required.

An integer number specifying at which position to stop (This integer is not included).

step   this is Optional.

An integer number specifying the incrementation.

Default is 1 ( if not specified)

Here Range (1 , 6)

Start = 1

Stop = 6 (  not to be included)

Step = 1  ( as not mentioned)

Hence  1 , 2 , 3 , 4 , 5

Learn More:

What is the output of range (1,6)

https://brainly.in/question/35052946

Attachments:
Similar questions