Python Program to Find Simple Interest

Problem Description Write a Python program that calculates simple interest based on the principal amount, interest rate, and time period provided. What is Simple Interest? Simple Interest is a basic financial concept used to calculate the interest earned or paid on a principal amount over a certain period of time, based on a fixed interest … Read more

advertisement

Python Program to Find Quotient and Remainder of Two Numbers

This is a Python Program to read two numbers and print their quotient and remainder. Problem Description The program takes two numbers and prints the quotient and remainder. Problem Solution 1. Take in the first and second number and store it in separate variables. 2. Then obtain the quotient using division and the remainder using … Read more

advertisement

Python Program to Swap Two Numbers without using Third Variable

This is a Python Program to exchange the values of two numbers without using a temporary variable. Problem Description The program takes both the values from the user and swaps them without using temporary variable. Problem Solution 1. Take the values of both the elements from the user. 2. Store the values in separate variables. … Read more

advertisement

Python Program to Check Whether a Given Number is Perfect Number

This is a Python Program to check if a number is a Perfect number. Problem Description The program takes a number and checks if it is a Perfect number. Problem Solution 1. Take in an integer and store it in a variable. 2. Initialize a variable to count the sum of the proper divisors to … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.