python
python
ii)
Q 4. Answer any two parts of the following. 5x2= 10
a) Write a Python program to capitalize the first and last character of each word in
a string. (input string- hello world)
b) State whether the following statement is true or false.
1. Python is a case-sensitive language.
2. Python is an object-oriented language.
3. Variable declaration is implicit in Python.
4. When executing a Python program, Python first compiles source code(file
statement) into a format known as pseudo-code.
5. An int can be converted to a string while a string cannot be converted to an
int.
c) Explain why Python has become one of the most popular language among the
programmers. Also, highlight the features of Python.
Q 5. Answer any two parts of the following. 5x2= 10
a) Write the output of the given Python codes :
i)
ii)
**********