SOOPRO Pathshala provides day-wise Python exercises to help students practise Python programming through practical tasks.
Practice Instructions:
Complete the programming tasks for each day. Mark a day complete after finishing its exercises. Your progress is saved in this browser.
Write a program to get a number from the user and print whether it is positive or negative.
Write a program that takes three numbers from the user and prints the greatest number.
Write a program that takes a number from the user and generates an integer between 1 and 7. It displays the weekday name.
Write a program that reads two floating-point numbers and tests whether they are the same up to three decimal places.
Write a program to find the number of days in a month.
Write a program that takes a year from the user and prints whether it is a leap year or not.
Write a program to check even or odd number.
Write a program to print valid to vote if age greater than or equal to 18 else print not valid to vote.
Write a program to print maximum among two integer numbers.
Write a program to print square of maximum and cube of minimum number.
Write a program to print diff of max and min among three numbers.
Write a program to print grade of student marks.
Write a program to print both are equal no, if two numbers are equal else print not equal.
Write a program to print 1 if two integer numbers are same, else print 0.
Write a program to print smallest among three numbers.
Write a program to print addition of two numbers on choice 1, subtraction of two numbers on choice 2, multiplication of two numbers on choice3 and division of two numbers on choice 4.
Write a program to print area of circle on choice 1, area of rectangle on choice 2, area of traingle on choice 3, invalid choice on choice 4.
Write a program to print sum of square and cube of any even number.
Write a program to print diff of square and cube of any odd number.
Write a program to print product of square and cube of even number
Write a program to print sum of 1 to 10 using for loop.
Write a program to print square of 1 to 10 using for loop.
Write a program to print cube of 1 to 10 using for loop.
Write a program to print even sum and odd sum of 1 to 10.
write a program to print table of any number using for loop.
Write a program to calculate the sum of first 10 natural number.
Write a program that prompts the user to input a positive integer. It should then print the multiplication table of that number.
Write a program to find the factorial value of any number entered through the keyboard.
Two numbers are entered through the keyboard. Write a program to find the value of one number raised to the power of another.
Write a program that prompts the user to input an integer and then outputs the number with the digits reversed. For example, if the input is 12345, the output should be 54321.
Write a program that reads a set of integers, and then prints the sum of the even and odd integers.
Write a program that prompts the user to input a positive integer. It should then output a message indicating whether the number is a prime number.
Write a program to calculate HCF of Two given number.
Write a do-while loop that asks the user to enter two numbers. The numbers should be added and the sum displayed. The loop should ask the user whether he or she wishes to perform the operation again. If so, the loop should repeat; otherwise it should terminate.
Write a program to enter the numbers till the user wants and at the end it should display the count of positive, negative and zeros entered.
Write a program to enter the numbers till the user wants and at the end the program should display the largest and smallest numbers entered.
Write a program to print out all Armstrong numbers between 1 and 500. If sum of cubes of each digit of the number is equal to the number itself, then the number is called an Armstrong number.
Write a program to print Fibonacci series of n terms where n is input by user :
Write a program to calculate the sum of following series where n is input by user. 1 + 1/2 + 1/3 + 1/4 + 1/5 +…………1/n
Write a program to print prime numbers between 2 to 50.
Write a program to print not prime numbers between 2 to 10.
Write a program to print your name ten times using while loop.
Write a program to print vowels and consonants of your first name.
Write a program to print vowels in left side and consonants in right side.
Write a program to print square of all odd numbers of 1 to 10.
Write a program to print cube of all even numbers of 1 to 10.
Write a program to print average of 1 to 10.
Write a program to print sum of table of any number.
Write a program to print sum of table of 1 to 5.
Write a program to print table of only even numbers between 5 to 20.
Write a program to print table of only odd numbers between 2 to 20.
Write a program to print total table sum between 1 to 10.
Write a program to print all even numbers between 2 to 50 in left side and all odd numbers in right side.
Write a program to print reverse of any three digit numbers.
Write a program to print sum of first and last number of any four digit numbers.
Write a program to print subtract of first and last number of any five digit numbers.
Write a program to print product of max and min of any four digit numbers.
Write a program to check whether given number is palindrome or not.
Write a program to check armstrong number.
Write a program to print table of max of and factorial of min of any five digit numbers.
Write a program to print sum of max and min and average of all three digit numbers.
Write a program to print following : * ** *** **** *****
Write a program to print table of any number in horizontal form.
Write a program to print square of all odd numbers in vertical form
Write a program to print factorial of 1 to 5.
Write a program to print factorial sum of all odd numbers between 1 to 10.
Write a program to print prime sum of odd even numbers between 5 to 50.
Write a program to store all even numbers of list into even list and all odd numbers of list into oddlist, return sum of total evenlist and oddlist to grand child in python.
Write a program to store all prime numbers of list into prime list and all not prime numbers of list into not primelist, return sum of primelist to many childs classes in python.
Write a program to pass and print alternative numbers of list using class and object.
Write a program to pass and print all alternative prime numbers of list using class and object.
Write a program to print square of only prime numbers of tuple using concrete method.
Write a program to print cube of only not prime numbers of tuple using concrete method.
Write a program check even and odd on first choice, on second choice check prime or not prime, on third choice print table of any number and on fourth choice print simple interest.
Write a program to return diff of area of circle and circumference of circle to grand child.
Write a Python program to display the current date and time.
Write a Python program that accepts a sequence of comma-separated numbers from the user and generates a list and a tuple of those numbers. Sample data : 2, 4, 6, 10
Write a Python program to print the volume of a sphere with radius six.
Write a Python program to calculate the difference between a given number and 17. If the number is greater than 17, return twice the absolute difference.
Create menu driven program in python press 1 to create file in write mode, press 2 to read file, press 3 to truncate file, press 4 to delete file and press 5 to delete folder
Create a python program to count total files in specified folder.
Write a python program to create folder.
Write a python program to create sub folder.
Create menu driven program in python, press 1 to delete all files of current directory, press 2 to delete subfolder, press 3 to delete current folder