Class IX
Chapter - 5
Introduction To Python
Part – I
1. Describe the advantages of Python being an interpreted language.
2. Elaborate at least two programming language besides Python, that are suitable for AI. Also
write their specific characteristics.
3. Explain the significance of Python to AI and associated technologies.
4. Differentiate between interactive mode and script mode in Python IDLE.
5. Distinguish between a statement and an expression in Python.
6. What are Python keywords and why are they important?
7. Explain what is an identifier and its role in Python programming.
We cannot use keyword as an identifier, it never starts with a number, spaces are not allowed in
an identifier.
8. List and briefly describe three basic datatypes in Python.
9. Explain the use of input () function in Python and provide an example.
Rollno =int (inpuit(“Enter the rollno: ”))
10. Define type conversion in Python and explain its significance.
Type conversion (type casting) is the process of changing the data type of an object from one type to another,
ensuring compatibility during operations. The process of conversion takes place in two different ways, based
on requirement. To handle them, Python allows implicit and explicit type conversion.
Implicit Type Conversion(Type Coercion/Promotion)
It is the automatic conversion performed by the Python interpreter during operations where the
destination type can accommodate the source type.
For Eg:- N1=10
N2=5.5
Result=n1+n2
print(Result)
Explicit Type Conversion(Type Casting)
Explicit Type Conversion is manual conversion, where the user explicitly converts the data type of
an object using predefined functions like int(), float(), str() etc.
For Eg:- Num_str=”100”
Num_int=int(Num_str)
print(Num_int)