NEW
Font size
WorksheetsPython - Week 1
Total questions: 10
Worksheet time: 8mins
What will the output be from the following code?
print(Hello world!)
Hello World!
Syntax Error
Hello World
print(Hello World!)
Why would the previous question have given a syntax error?
Reminder: print(Hello world!)
The p in print should be a capital P
The ; was missing from the end
There is no space between print and the (
The " " marks were missing
What is the purpose of comment lines in code?
To compliment your work so you feel better about it.
To explain the code that follows it.
To make the code compile.
To make your code longer so you get more points.
Which of the following symbols are used for single line comments in Python?
//
"
/* */
#
A location in memory used to store data that can be changed.
Constant
Variable
Value
Iteration
What will be the output?
name = "Dave"
print (name)
Dave
'Dave'
name
(name)
What is Python?
Text based programming language
Word processor
Spreadsheet
Block based programming language
Which statement correctly assigns the string "Dave" to the variable name?
name = print( "Dave")
input("Dave")
name = "Dave"
name = input("Dave")
How confident do you feel about the Python work we covered in lesson (print and variables)?
I totally get it!
I mostly get it!
I don't really understand it!
I have no idea!
