0% found this document useful (0 votes)
9 views3 pages

Python Programming Exercises List

Uploaded by

mrvr2286
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)
9 views3 pages

Python Programming Exercises List

Uploaded by

mrvr2286
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

Roll

no Topics
1 WAP to calculate number of days between two dates.
2 Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn.
3 Write a Python program to get the volume of a sphere with radius 6.
4 Write a Python program to calculate area of rectangle.
5 Write a Python program for get palindrome string.
6 Write a Python program to calculate area of square.
7 Write a Python program to test whether a number is within 100 of 1000 or 2000.
8 Write a Python program to sort three integers without using conditional statements and loops.
9 WAP that will return true if the two given integer values are equal or their sum or difference is 5.
10 WAP that accept two strings & test if the letters in the second string are present in the first string.
11 Write a Python progm to print "Hello". & also write program to sum, substract, multiply & divide.
12 which accepts the user's first and last name & print them in reverse order with space b/w them
13 Cal. the sum of three given numbers, if the values are equal then return three times of their sum
14 The diff. b/w given number and 17, if the num is greater than 17 return double the absolute diff
15 Write a Python progm to print "Hello". & also write program to sum, substract, multiply & divide.
16 Write a Python program to compute the greatest common divisor (GCD) of two positive integers.
17 WAP to remove and print every third number from a list of numbers until the list becomes empty
18 WAP to sum of two given integers. However, if the sum is between 15 to 20 it will return 20.
19 Write a Python program to test whether all numbers of a list is greater than a certain number.
20 Write a Python program to get the least common multiple (LCM) of two positive integers.
21 Write a Python program to add two objects if both objects are an integer type.
22 Write a Python program to display your details like name, age, address in three different lines.
23 Write a Python program to calculate midpoints of a line.
24 Write a Python program to calculate midpoints of a line.
25 Write a python program to find the sum of the first n positive integers.
26 Write a Python program to print without newline or space.
27 Write a Python program to calculate the hypotenuse of a right angled triangle.
28 Write a Python program to compute the distance between the points (x1, y1) and (x2, y2).
29 Write a Python program to convert all units of time into seconds.
30 Write a Python program to convert seconds to day, hour, minutes and seconds.
31 WAP to sum of three given integers. However, if two values are equal sum will be zero.
32 Write a Python program to display the current date and time.
33 Write a Python program to calculate the sum of the digits in an integer
34 Write a Python program to calculate body mass index.
35 WAP to compute the future value of specified principal amount, rate of interest, & num of years.
36 Write a Python program to concatenate N strings.
37 Write a Python program to find factorial
38 Write a Python program to count the number occurrence of a specific character in a string
39 Write a Python program to get the ASCII value of a character.
40 Write a Python program to swap two variables.
41 Write a Python program to check if a number is positive, negative or zero.
42 Write a Python program to filter the positive numbers from a list
43 Write a Python program which accepts the radius of a circle from the user and compute the area
44 Write a Python program to compute the product of a list of integers (without using for loop).
45 Write a Python program to determine the largest and smallest integers, longs, floats
46 Write a Python program to check whether lowercase letters exist in a string.
47 Write a Python program to convert true to 1 and false to 0
48
Write a Python program that accepts six numbers as input and sorts them in descending order.

49
Write a Python program forget palindrome number.

50
Which accepts sequence of comma-separated num from use and generate list,tuple with those Num

51
Write a Python program to input a year and check whether it is leap year or not.

52 Write a Python program to check whether the input number is prime or not.
53
Write a Python program to print a string and the number of vowels present in it

54
Write a Python program to print a string and the number of consonants present in it

55
Write a Python program to print a table of n (is an integer).

56
Write a Python program to check whether a string is numeric

57
Write a Python program to find the number of divisors of a given integer is even orodd.

58
Write a Python program to print fibbonacci series.

59
Write a Python program to test whether a passed letter is a vowel or not.

60
Write a Python program to concatenate all elements in a list into string and returnit.

61
Write a Python program to get the Python version you are using.

62 Write a Python program that will accept the base and height of a triangle and compute the area.
63 Write a Python program for even odd test.
64 Func. that takes sequence of num & determines whether all num are different from each other
65 WAP to create all possible strings by using 'a', 'e', 'i', 'o', 'u'. Use the characters exactly once.
66 Write a Python program to convert all units of time in minutes.
67 Write a Python program to find the digits which are absent in a given mobile number.
68 WAP to print the number of prime numbers which are less than or equal to a given integer.
69
Write a Python program that accepts six numbers as input and sorts them in descending order.
70
Write a Python program forget palindrome number.

71
Which accepts sequence of comma-separated num from use and generate list,tuple with those Num

72 WAP to calculate number of days between two dates.


73 Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn.
74 Write a Python program to get the volume of a sphere with radius 6.
75 Write a Python program to calculate area of rectangle.
76 Write a Python program for get palindrome string.
78 Write a Python program to calculate area of square.
79 Write a Python program to test whether a number is within 100 of 1000 or 2000.
80 Write a Python program to sort three integers without using conditional statements and loops.
81 WAP that will return true if the two given integer values are equal or their sum or difference is 5.
82 WAP that accept two strings & test if the letters in the second string are present in the first string.
83 Write a Python progm to print "Hello". & also write program to sum, substract, multiply & divide.
84 which accepts the user's first and last name & print them in reverse order with space b/w them
85 Cal. the sum of three given numbers, if the values are equal then return three times of their sum
86 The diff. b/w given number and 17, if the num is greater than 17 return double the absolute diff
87 Write a Python progm to print "Hello". & also write program to sum, substract, multiply & divide.
88 Write a Python program to compute the greatest common divisor (GCD) of two positive integers.
89 WAP to remove and print every third number from a list of numbers until the list becomes empty
90 WAP to sum of two given integers. However, if the sum is between 15 to 20 it will return 20.
91 Write a Python program to test whether all numbers of a list is greater than a certain number.
92 Write a Python program to get the least common multiple (LCM) of two positive integers.
93 Write a Python program to add two objects if both objects are an integer type.
94
Write a Python program forget palindrome number.

You might also like