Q. What will be the output produced?

 

(a)

x, y, z = True, False, False

a = x or (y and z)

b = (x or y) and z

print(a, b)

 

(b)

x, y = '5', 2

z = x + y

print(z)

 

(c)

s = 'Sipo'

s1 = s + '2'

s2 = s * 2

print(s1)

print(s2)

 

(d)

w,x, y, z = True , 4, -6, 2

result = - (x + z) < y or x ** z < 10

print(result)

 

Answer =

 

(a)

True False

>>> 

 

(b)

It will give error that:-

    z = x + y

TypeError: must be str, not int

 

(c)

Sipo2

SipoSipo

>>> 

 

(d)

False

>>> 

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. tq for the great help easy to copy in xam and practicals

    ReplyDelete
  2. hi p













































































































    thank yuo knaht orb

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post