Page 97 - TP_V5.1_C8_fb
P. 97
You will get the following output:
Output
o
a
n
d
4
Hashtag
# Python: Python is an interpreted, object-oriented, high-level programming language
# Strings: Strings are a consecutive sequence of characters that are enclosed or surrounded by
single or double quotes
REVISIT
▶ Functions help us break our program into smaller pieces or modules.
▶ Python functions can be categorised into in-built functions and user-defined functions.
▶ A sequence of characters that are enclosed or surrounded by single (‘ ’) or double (“ ”) quotes is known as a
string.
▶ A list is a type of container that is used to store a list of values of any type.
1. Tick ( ) the correct option.
a. Which type of function is upper()?
(i) Built-in (ii) User-defined
(iii) Not a valid function (iv) None of these
b. What is the input given to the functions referred to as?
(i) Return Value (ii) Name
(iii) Arguments (iv) None of these
c. Which of the following is created by the user according to the needs of the program?
(i) Built-in functions (ii) User-defined functions
(iii) Both (i) and (ii) (iv) None of these
Functions, String and List in Python 95

