NEW
Font size
WorksheetsY8 - Intro to Python - L6 Putting it all together
Total questions: 14
Worksheet time: 7mins
What does == mean?
Assign a value to a variable
A value is greater than another value
Check that the value on the right of the == matches the value on the left
What will happen when we run this:
name = input()
print ("Hi there, ",name)
It will output Hi there, and the name entered
There is an syntax error
It will output Hi there name
A memory location where you store values
a type of graphics in memory
Data type in memory
Which mathematical operator (symbol) is used in python to assign values to a variable?
Which of these would work as a piece of code and is not a syntax error?
What is the meaning of the following comparison operator (Mathematical symbol)?
a < b
a >= b
a != b
print(3+4)
What is the output from the following code:
name = "Fred"
print("Hello " + NAME)
Hello NAME
An error will occur
Which method forces the users to enter a number?
int()
text()
input()
