Computer Science, asked by shimmygovindpv, 1 year ago

x=0 for i in range(10): x=x+1

A. 10
B. 11
C. 12
D. 13

Answers

Answered by tushar2686
0

D

nice question sir


tushar2686: Mark as brainlist sir
shimmygovindpv: Are you sure
tushar2686: Yes
Answered by Gopeshtiwari34
0

Here is your answer mate...✌✌✌

>>> # One parameter

>>> for i in range(5):

... print(i)

...

0

1

2

3

4

>>> # Two parameters

>>> for i in range(3, 6):

... print(i)

...

3

4

5

>>> # Three parameters

>>> for i in range(4, 10, 2):

... print(i)

...

4

6

8

>>> # Going backwards

>>> for i in range(0, -10, -2):

... print(i)

...

0

-2

-4

-6

-8

Iterating Lists

>>> my_list = ['one', 'two', 'three', 'four', 'five']

>>> my_list_len = len(my_list)

>>> for i in range(0, my_list_len):

... print(my_list[i])

...

one

two

three

four

five


shimmygovindpv: Then my answer!!
Similar questions