NEW
Font size
WorksheetsIntro to Python
Total questions: 20
Worksheet time: 11mins
What is a variable?
A math operator
An element, feature, or factor that is liable to vary or change.
An if statement
A computer system that can change
What does print("hello) display?
hello
gives you an error
"hello"
"hello
What does \n do?
Adds a quotation
Creates a number
Adds a new line
Adds a fullstop
What symbol would you use to add a comment to your code?
//
#
-
]]
How do you ask an input from a user?
name = int("what is your name")
name = input(what is your name?)
input = name("what is your name?")
name = input("what is your name?")
Finding and fixing the errors in a program
Indentation
Nesting
Event Block
Debugging
A block of code that may repeat or run more than once.
Loop
If
Function
Event Block
____________ is information the user sends to the computer
Software
Input
Secondary Memory
Program
How will the following code look on the screen?
print ("I love programming.")
print ("I love programming.")
"I love programming."
"I love programming."
I love programming.
I love programming.
I love programming. I love programming.
I LOVE PROGRAMMING
I LOVE PROGRAMMING
What will be the output?
name = "Dave"
print (name)
Dave
'Dave'
name
(name)
