Q. What does Python print as it executes the following sequence of statements?


 
Expression Correct Datatype
(a) print ((10+3)*2)
(b) print (11/2)
(c) x = 25
print (x * 2 == 50)
(d) print (x /2 >= 50)
(e) a = ‘Honda'
b="Audi'
print (a + b)
(f) c = len (a) + len (b)
print (c)
(g) print (a)
(h) print (a[1])

Answer :-

 
Expression Correct Datatype
(a) print ((10+3)*2) 26
(b) print (11/2) 5.5
(c) x = 25
print (x * 2 == 50)
True
(d) print (x /2 >= 50) False
(e) a = 'Honda'
b = "Audi"
print (a + b)
HondaAudi
(f) c = len (a) + len (b)
print (c)
9
(g) print (a) Honda
(h) print (a[1]) o

Post a Comment

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

Previous Post Next Post