What is the output?
print (3/2)
1.5
Which data type stores letters, numbers, and symbols.
What is a string?
To comment a line in Python, you use this/these character(s).
What is a hashtag sign (#) ?
This operator "glues" two strings together.
What is the concatenation (+) operator?
Fix the error:
print ("3" + 2)
Which data type stores decimal numbers.
What is a float?
print (x[4:])
on
What is the output?
print (12 % 5)
2
x = True
print (type(x))
<class 'bool'>
What does the variable i stand for in
for i in range (0, 10):?
increment
x = dra
z = xan
y = ale
What does print (y+x+z) display
Alexandra
What is the output?
print (1 % 3)
1
What is 0 and 10 in:
for i in range (0, 10)?
0 is the start point and 10 is the end point
What is Syntax?
The rules of the language, involving, grammar and punctuation.
What is the output?
print (3 + 5 ** 2 - 20)
8
To determine the length of a string you would use this function
What is len()?
Where do we store the count in for loop?
for i in range (0, 10):
In the variable called i
str()