WorksheetsPYTHON PROGRAMMING BASICS
Total questions: 13
Worksheet time: 6mins
Why did Guido van Rossum call his programming language Python?
He thinks Pythons were cool
He couldn't think of anything else
A friend suggested it
He loves Monty Python
What do we use at the start of a comment line?
@
#
"
*
Which of these isn't a Python variable type?
Integer
String
List
Decimal
Which of these is true?
A syntax error will stop a program running
A logic error will stop a program running
A syntax error will let the program run but may have unexpected outcomes
The program will always show an error message for a logic error
What does != represent?
Possibly equal to
Not equal to
Check for error
Don't assign a value
Which operator performs a division?
-
+
/
*
To display the following on screen
Hello World!
the following command should be used:
print(Hello World!)
print("Hello World!")
print("Hello World" + !)
print"(Hello World!)"
To display something on the screen, use this command:
print()
Print()
screen()
write()
display()
