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

Index

The document contains a list of programming tasks in Python aimed at beginners. Tasks include finding maximum and minimum elements in a list, reversing a number, generating Fibonacci series, checking for prime and perfect numbers, and various string and list manipulations. It also includes tasks related to user input and calculations, such as calculating total salaries for employees.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Index

The document contains a list of programming tasks in Python aimed at beginners. Tasks include finding maximum and minimum elements in a list, reversing a number, generating Fibonacci series, checking for prime and perfect numbers, and various string and list manipulations. It also includes tasks related to user input and calculations, such as calculating total salaries for employees.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Index

1. Write a program in Python to find the maximum and minimum elements in the list
entered by the user.
2. WAP to accept a number from the user and print the reverse of that number.
3. WAP to print Fibonacci series up to a certain limit
4. Write a program to enter a number and check if it is a prime number or not.
5. WAP to accept a number and find out whether it is a perfect number or not.
6. Write a program that asks the user to enter their name and age. Print a message
that tells the user the year in which they will turn 100 years old.
7. Write a program to get selling price and GST rate and then print invoice along
with both GST and SGST.
8. Write a program to find the second largest element in a list 'num'
9. Write a program to check if a number is present in a list or not. If the number
is present, print the position of the number. Print an appropriate message if the
number is not present in the list
10.A list contain the following item
[3,21,5,4,14,8,14,3]
WAP to swap the content with the next values divisible by 7 so that the
resultant It took the
[3,5,21,4,8,14,3,14]
11.WAP to shift the negative numbers to the right and the positive numbers to the
left so that the resultant looks like
Original list:[-12,11,-13,-5,6,-7,5,-3,-6]
Output should be [11,6,5,-6,-3,-7,-5,-13,-12]
12.Write a program to find the number of occurrences of each vowel present in the
inputted string
13.Write a function to convert a number entered by the user into its corresponding
number in words
14.Write a program to find the number of occurrences of each letter character
present in the string inputted by the user.
15.Write a program to display all the state names from a list of states which start
with the alphabet M.
Output should be:
enter the list =["MP","UP","WB","TN","MH","MZ","DL","BH","RJ","HR"]
the states with letter M:
MP
MH
MZ
16.Write a Python code to delete all odd numbers and negative numbers from a given
numeric list
17.Write a Python program to input names of 'n' employees and their salary details
like basic salary, house rent and conveyance allowance. Calculate total salary of
each employee and display it.

You might also like