NEW
Font size
WorksheetsPython syntax errors
Total questions: 30
Worksheet time: 24mins
What is incorrect about this code?
The text should be in double quotation marks
The print function should be all lower case
The string is within the brackets of the print function
They have spelt print incorrectly
What is incorrect about this code?
The text should be in double quotation marks
The print function should be all lower case
The string is within the brackets of the print function
They have spelt print incorrectly
What is incorrect about this code?
The print function should be all lower case
They have spelt print incorrectly
The string should have single quotation marks OR double quotation marks
The string is within the brackets of the print function
In which line is the syntax error?
Line 1
Line 2
Line 3
Line 4
In which line is the syntax error?
Line 1
Line 2
Line 3
Line 4
What is incorrect about this code?
The variable Lucky should be all lower case
The print function should be all lower case
The string should be in single quotation marks
They have spelt print incorrectly
In which line is the syntax error?
Line 1
Line 2
Line 3
Line 4
What is incorrect about this code?
The variable Lucky should have a capital L
The string should be in single quotation marks
The print function should be all lower case
They have spelt print incorrectly
In which line is the syntax error?
1
2
3
4
What is incorrect about this code?
The print function should be all lower case
The variable Lucky should have a capital L
They have spelt print incorrectly
There is no comma between the string and variable
In which line is the syntax error?
1
2
3
4
What is incorrect about this code?
The print function should be all lower case
The string should be in double quotation marks
They have spelt print incorrectly
There is no comma between the string and variable
In which line is the syntax error?
1
2
3
4
What is incorrect about this code?
User is spelt incorrectly
The string should be in double quotation marks
There should not be anything in the input brackets
Input is spelt incorrectly
In which line is the syntax error?
1
2
3
4
What is incorrect about this code?
User is spelt incorrectly
The string should be in quotation marks
There should not be anything in the input brackets
Input is spelt incorrectly
In which line is the syntax error?
1
2
3
4
5
What is incorrect about this code?
User is spelt incorrectly
There should be a colon at the end of the if statement
If should have a lower case “i"
There should be double equal signs
In which line is the syntax error?
1
2
3
4
5
What is incorrect about this code?
User is spelt incorrectly
There should be a colon at the end of the if statement
If should have a lower case “i"
There should be double equal signs
In which line is the syntax error?
1
2
3
4
5
What is incorrect about this code?
else is spelt incorrectly
There should be a colon at the end of the if statement
else should have a lower case “e"
else should not be indented
In which line is the syntax error?
1
2
3
4
5
What is incorrect about this code?
else is spelt incorrectly
There should be a colon at the end of the if statement
else should have a lower case “e"
else should not be indented
In which line is the syntax error?
1
2
3
4
5
What is incorrect about this code?
User is spelt incorrectly
There should be a colon at the end of the if statement
If should have a lower case “i"
There should be double equal signs
In which line is the syntax error?
1
2
3
4
5
What is incorrect about this code?
User is spelt incorrectly
The brackets in input function should be empty
input is spelt incorrectly
The int function should be around the input function
On which line is the int function?
1
2
3
4
Is the code now working correctly?
Yes
No
