0% found this document useful (0 votes)
5 views4 pages

SY Python External 23-24

The document contains a series of programming tasks and exercises in Python, covering various concepts such as string manipulation, arithmetic operations, list processing, file handling, and object-oriented programming. Each task is presented as a specific problem to solve, such as finding character occurrences, performing calculations, and working with data structures like lists and dictionaries. The exercises aim to enhance programming skills and understanding of Python functionalities.

Uploaded by

SIT COE
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)
5 views4 pages

SY Python External 23-24

The document contains a series of programming tasks and exercises in Python, covering various concepts such as string manipulation, arithmetic operations, list processing, file handling, and object-oriented programming. Each task is presented as a specific problem to solve, such as finding character occurrences, performing calculations, and working with data structures like lists and dictionaries. The exercises aim to enhance programming skills and understanding of Python functionalities.

Uploaded by

SIT COE
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

1.

Take your name as string and display your first name, middle name ,last
name using string slicing

2. WAP to find out whether given character is present in string or not and
count occurrence of given character in string

3. Take string input from user and perform following task on it using string
slicing
a. Display first 5 character or string
b. Display last 5 character or string

4. WAP to perform calculator(all arithmetic operations ) using if statement

5. WAP to find whether given number is positive, negative or zero using nested
elif ladder
6. WAP to replace character ‘e’ in string by ‘*’.
(eg “Hello” output-”H*llo”)

7. WAP to print odd numbers between 1 to 20 using continue statement

8. WAP to print the table of user given number

9. WAP to calculate summation of all elements present in a list(take list of10


numbers)

[Link] to find smallest and largest number in a list(take list of 10 numbers)

[Link] a Python program to reverse a tuple(take 10 characters)

[Link] a Python program to create a “Result”( subject, marks)


[Link] dictionary,calculate the percentage based on subject marks(take 5
subjects)

[Link] a Python program to iterate over “Subject” dictionary and find out
weather “Python ” subject is present or not

[Link] a Python program to perform summation of two numbers which is the


squares of user given numbers

[Link] a Python program to illustrate the use of a math module with its
methods.

[Link] a Python program to read “[Link]” file line by line.

18. Write a Python program to create “[Link]” file and Write your self
information in that file(use writelines()) and read the same data(readlines())
19. Demonstrate Class, object in python.

20. Demonstrate range() function in python.

[Link] a program to print the frequency of characters in a given file.

22. Find sum of all primes below two million.

You might also like