Problem 1: Simple Interest Calculator Function
Easypython
Learn the Concept: FunctionsProblem Description
Write a function simple_interest(principal, rate, time) that calculates and returns the simple interest using the formula: (principal * rate * time) / 100.
Input
Three numbers: principal amount, rate of interest, and time in years.
Output
A single number representing the calculated simple interest.
Constraints
- All inputs will be positive numbers.
Example Input
textprincipal = 1000, rate = 5, time = 2
Example Output
textSimple Interest: 100.0
Concepts Covered
Function definition, parameters, return, arithmetic operations.
Related Problems
- Problem 2: Even or Odd Checker FunctionEasy · pythonSolve Problem
- Problem 3: Average of a List FunctionEasy · pythonSolve Problem
- Problem 4: Greeting Function with Default ArgumentEasy · pythonSolve Problem