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

Python Programming

The document outlines an assignment for a Python programming course, consisting of five tasks. These tasks include printing a formatted string, creating a Circle class with area and perimeter methods, developing a calculator class, discussing Python's list data structure and its methods, and modifying a specified list by removing certain elements. Each task aims to enhance the understanding and application of Python programming concepts.

Uploaded by

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

Python Programming

The document outlines an assignment for a Python programming course, consisting of five tasks. These tasks include printing a formatted string, creating a Circle class with area and perimeter methods, developing a calculator class, discussing Python's list data structure and its methods, and modifying a specified list by removing certain elements. Each task aims to enhance the understanding and application of Python programming concepts.

Uploaded by

tavisej345
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

PYTHON PROGRAMMING

CS-2nd A
Assignment No-01
1. Write a Python program to print the following string in a specific format (see the output).

Output:
Twinkle, twinkle, little star,
How I wonder what you are!
Up above the world so high,
Like a diamond in the sky.
Twinkle, twinkle, little star,
How I wonder what you are
2. Write a Python program to create a class representing a Circle. Include
methods to calculate its area and perimeter.

3. Write a Python program to create a calculator class. Include methods for basic
arithmetic operations.

4. Discuss list data structure of python. Explain various inbuilt methods of list with
suitable example of each.

6. Write a Python program to print a specified list after removing the 0th, 4th and
5th elements.

Sample List : ['Red', 'Green', 'White', 'Black', 'Pink', 'Yellow']


Expected Output : ['Green', 'White', 'Black']

You might also like