152k views
3 votes
Choose the expression that belongs in the blank in order to have the output shown.

>>> a = 5
>>> print(_____)
The value is5

"The value is " + str(a)

"The value is" , str(a)

"The value is " , str(a)

"The value is" + str(a)

User Digby
by
5.0k points

1 Answer

4 votes

Answer:

Option B

Step-by-step explanation:

Given

a = 5

and if the value allotted to variable a is to be printed, the following command will be used

print "The values is", str(a)

Hence, option B is correct

User Tostasqb
by
5.5k points