Font size
WorksheetsPython Test 1
Total questions: 10
Worksheet time: 26mins
To output the result, we need to use print() function.
True
False
Write a Python code to output the results as shown
Write a Python code to output the results as shown (Hints: separator)
In programming, variables work like containers to hold important stuff used in your code
True
False
When naming a variable, the name can consists of.....
Lower capital
Upper capital
Any special characters
Cannot start with a digit
Which of the variable name below is usable?
Assassins123
1Malaysia
Han_Chiang
Percentage%
Which of the following data types used in Python?
Words
Boolean
Strings
Integers
To accept user input, we need to use input() function.
True
False
Write a code to ask for user input about their birthplace
Write a Python code to accept user input and output the results as shown
