Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
16 views

Python Ass 01

Assignment python

Uploaded by

mulukshivani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Python Ass 01

Assignment python

Uploaded by

mulukshivani
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

MIT Arts, Commerce and Science College, Alandi (D), Pune

Department of Computer Application


Class: TYBBA (CA) – [Sem II]
Subject: Python Programming
Assignment No.1
1. Explain features of python.
2. Explain the input( ) and print( ) function with suitable example
3. Explain range( ) function with suitable example.
4. Explain different types of operators in Python with suitable examples.
5. Explain following different types of decision making (conditional statements) in Python
with suitable examples.
a. if statements
b. if….else statements
c. if….elif….else statements
6. Explain following different types of loop statements in Python with suitable examples.
a. while loop
b. for loop
c. Nested loops
7. Explain the following statements with suitable examples.
a. break
b. continue
c. pass
8. Explain any five string manipulation methods with suitable examples.
9. Write a short note on data types in python.

Programs on Loops, Conditional statements, string and List

1. Write a Python program to print characters from a string that are present at an even
index number.
2. Write a python program to print a table of any number.
3. Write a Python program to display all integers within the range 100-200 whose sum of
digits is an even number.
4. Write a Python program to perform basic mathematical operations.
5. Write a Python program to insert a number to any position in a list.
6. Write a program to implement the concept of queue using list.
7. Create a list a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] and write a python program that
prints out all the elements of the list that are less than 5.
8. Write a python script to implement bubble sort using list.
9. Write a Python function that accepts a string and calculate the number of upper case
letters and lower case letters. Sample String : 'The quick Brow Fox' Expected Output :
No. of Upper case characters : 3 No. of Lower case Characters : 12
Last Date of Submission: 10/08/2024

All the students are informed that they should give viva on this assignment on or
before 10/08/2024 without fail. Internal marks will be given based on timely
submission. Kindly make note of it.

You might also like