0% found this document useful (0 votes)
3 views1 page

Python Assignment 1

This document is an assignment for a B.Tech. course in Computer Science and Engineering focused on Python Programming. It includes three sections with questions covering key features of Python, data types, operator precedence, and practical programming tasks. The assignment is structured to assess both theoretical knowledge and practical coding skills.

Uploaded by

Yash Soni
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Python Assignment 1

This document is an assignment for a B.Tech. course in Computer Science and Engineering focused on Python Programming. It includes three sections with questions covering key features of Python, data types, operator precedence, and practical programming tasks. The assignment is structured to assess both theoretical knowledge and practical coding skills.

Uploaded by

Yash Soni
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

[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.

You might also like