a) yes
b) no
c) machine dependent
d) none of the mentioned
Case is always significant while dealing with identifiers in python.
a) x = 13 // 2
b) x = int(13 / 2)
c) x = 13 % 2
d) All of the mentioned
// is integer operation in python 3.0 and int(..) is a type cast operator.
a) not(-6<0 or-6>10)
b) -6>=0 and -6<=10
c) not(-6<10 or-6==10)
d) not(-6>10 or-6==10)
The expression not(-6<0 or -6>10) returns the output False.
a) first, right
b) second, left
c) first, left
d) second, right
The formatting method {1:<10} represents the second positional argument, left justified in a 10 character wide field.
a) +
b) *
c) –
d) All of the mentioned
+ is used to concatenate and * is used to multiply strings.
Items per page: