Worksheet 3 (Chapter 7)
A. Fill in the blanks.
1. print ()
2. Error
3. .py
4. Script
B. State True or False.
1. False
2. True
3. False
4. False
C. Select the correct option.
1. c. Variables
2. c. _hello
3. b. Integer
4. a. BEDMAS
D. Answer the following questions.
1. The three basic data types of Python are integers, floats, and strings.
2. The print () function is used to display output on the screen. It can be used to print messages, variables, or the result of expressions.
3. Interactive mode allows users to enter commands and get executed line-by-line. The interactive mode is preferred for small programs. Whereas script mode involves writing code in a script or a file and then executing the entire script. For writing lengthy programs, the script mode is used.
No comments:
Post a Comment