type(7.0)
type("7.0")
type(7)
float(7)
str(7.0)
type(3+4)
float
argument to the
int
function, which of the following does it do?
Which of the following does not print the same thing as the others?
Program A:
= 14
a = 3
b print(a, b)
Program B:
= 3
a = 14
b print(14, 3)
Program C:
= 14
a = a
b print(a, b)
Program D:
= 3
a = 14
b print(14, a)
Consider the following program:
= 5
a = 5
b = 6
a = 7 b
After this program executes, what values do a
and
b
hold?
What does the following program print?
= 3.0
x = 2.0
m = -4.0
b = m * x + b
y print(y)