English, asked by mohitsharma604, 9 months ago

Write the output for the following code of statements:
A.
a. >>>print('India', 'Delhi')​

Answers

Answered by Legend42
8

Answer:

Order of Execution of print function is not from left to right , as often misunderstood. It depends upon the arguments , sub-expression and the compiler.

In this particular case , there are two logical operators in the argument of the print function. These are “AND” & “OR”. “AND” operation has higher precedence than “OR” operation, so it is evaluated first.

Hence, print function is evaluated in the following order:

print(a>45 or b>50 and c>10) #and operation is executed first

print(a>45 or (0)) #Since b is not greater than 50 and c is not greater than 0

print(1 or 0) # Since a is 50 and is greater than 45

print(1)

Answered by neetumini41
1

Answer:-

India(#Spacebar)Delhi

Output is = India Delhi

Similar questions