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.