What is the data type of decimal numbers
float
What is a variable
Variable is something whose value can be changes
What's the operator for modulus
%
What does this mean
import math
importing a math library in your program
What does the symbols for comment?
#
What's the data type of a variable?
a=400.56
float
which one are valid variable names?
_sa_area
&sa_area
_sa_area
What's the operator for integer division
//
What is a round function
rounding the float variable to specific decimal places
What is the meaning of double quotes
Display single line as the output
what are the basic data types
int,float and string
In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type:
True or False
True
What's the output of this
a=21/2
b=21%2
c=21//2
10.5,1,10
What's the value of this expression?
2+3*10+10%2*10
32
What is string concatenation
the process of appending one string to the end of another string
correct or incorrect?
a=20.3
print("The value of a is"+str(a))
correct
What's the type function used for ?
to tell the data type of a variable
what's the output of this?
20+10*3-(15-7)+27//2
55
What's the value of this expression?
118+2+10*19*(10+10)*2%2
120
What's the output of this?
name="100"
print("The value of the name is", +name)
The value of the name is 100
what's the output of this?
a=int(123.45)
b=12.3
print(a+b)
135.3
x=100
y=x
print(y)
100
What arithmetic operators do we have in python
+,-,*,**,/,//,%
What's the output of this?
a=200.34
b=20.034
print(a==b)
False
What's the output?
a=100
b=200
print(a>=b)
False