lst = []
num = int(input('How many numbers: '))for n in range(num):
numbers = int(input('Enter number '))
lst.append(numbers)print("Maximum element in the list is :", max(lst), "\nMinimum element in the list is :", min(lst))
Output :

lst = []
num = int(input('How many numbers: '))for n in range(num):
numbers = int(input('Enter number '))
lst.append(numbers)print("Maximum element in the list is :", max(lst), "\nMinimum element in the list is :", min(lst))


Output:-
GST = 25%
# Monthly Interest Rate (r) = R/(12*100)
# Varaible name details:
# p = Principal or Loan Amount
# r = Interest Rate Per Month
# n = Number of monthly installments
# Reading inputs from user
p = float(input("Enter principal amount: "))
R = float(input("Enter annual interest rate: "))
n = int(input("Enter number of months: " ))
# Calculating interest rate per month
r = R/(12*100)
# Calculating Equated Monthly Installment (EMI)
emi = p * r * ((1+r)**n)/((1+r)**n - 1)
print("Monthly EMI = ", emi)
Output
Enter principal amount: 1000000
Enter annual interest rate: 7
Enter number of months: 120
Monthly EMI = 11610.847921862374
# Python Program to Calculate Profit or Loss
actual_cost = float(input(" Please Enter the Actual Product Price: "))
sale_amount = float(input(" Please Enter the Sales Amount: "))
if(actual_cost > sale_amount):
amount = actual_cost - sale_amount
print("Total Loss Amount = {0}".format(amount))
elif(sale_amount > actual_cost):
amount = sale_amount - actual_cost
print("Total Profit = {0}".format(amount))
else:
print("No Profit No Loss!!!")Python profit or loss output
Please Enter the Actual Product Price: 1500
Please Enter the Sales Amount: 1200
Total Loss Amount = 300.0
p = int(input("Enter principal amount = "))
r = int(input("Enter the rate = "))
t = int(input("Enter time = "))
si = (p * r * t ) / 100
com = p * ( (1 + (r / 100 ))** t ) - p
print("Simple interest = ",si)
print("Compound interest = ",com)
import math
def area_square(a):