Computer Science, asked by cyber53, 4 days ago

Predict the output: x=11 y=5 for i in range(x-y * 2): print(i) (a) (b) 1 (c) 01 (d) 0 123 45 30


Answers

Answered by khushidas93
0

Hey Mate

Answer :::

The x-y * 2 in range(x-y * 2) is evaluated as below:

   x - y * 2

⇒ 11 - 5 * 2

⇒ 11 - 10 [∵ * has higher precedence than -]

⇒ 1

Thus range(x-y * 2) is equivalent to range(1) which does not returns as an empty sequence — [ ].

hope this helps uhh...

mark me brainlist....

Similar questions