Font size
Worksheets03 - Python - Basics
Total questions: 10
Worksheet time: 10mins
Every variable is connected to a value, which is the information associated with that variable.
True
False
Which is not followed variable rules?
Variable name can contain only letters, numbers, and underscores.
Spaces are not allowed in variable names.
Avoid using Python keywords and function names as variable names.
Variable names should be short but descriptive.
Variable names can start with a number.
What mark do you use to be considered a string in Python?
'
"
/
#
*
Data types in Python are:
Strings
Floating-point numbers
Integers
Settling-point numbers
Interests
Valid variable names are:
current-balance
Current Balance
account4
4account
current_balance
What mark do you use to be considered a comment in Python?
'
"
/
#
*
What mark do you use to be considered operator in Python?
'
"
/
#
*
Which is not showed in traceback when error happen?
File name
Line number
Module name
Error type explanation
Correct syntax
A method is an action that Python can perform on a piece of data.
True
False
Valid constant name is:
current-balance
Current Balance
account4
4account
CURRENT_BALANCE
