[Link].
(Computer Science and Engineering)
Semester-IV
Subject: Python Programming (BCO081B)
Marks:64
Assignment#1
Section-A Answer the following Questions: (5*2=10marks)
1. List any five key features of Python.
2. Why is Python considered an interpreted language?
3. Why is indentation important in Python?
4. What is a variable in Python?
5. What is the Python interactive shell, and how can you access it?
Section-B Answer the following Questions: (7x3=21Marks)
1. What is the purpose of the type() function in Python? Write a program to demonstrate
its use with different data types.
2. Explain the different Data Types uses in Python.
3. Explain the concept of operator precedence and associativity in Python.
Section-C Answer the following Questions: (11x3=33Marks)
1. Write a Python program to calculate the area of Triangle and include comments to
explain each step of the code.
2. What is Operators in Python? Explain its type with example.
3. Explain the use of the membership operator (in) in Python. Write a program to check if
a specific element exists in a list.