Skip to content

Commit 7c82ce8

Browse files
author
ReemNaw
committed
delete the printings
1 parent c95e276 commit 7c82ce8

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

compound_interest.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,9 @@ def compound_interest(p, t, r):
1818

1919

2020
if __name__ == "__main__":
21-
p = float(input("Enter the principal amount: "))
22-
print(f'P: {p}')
2321

22+
p = float(input("Enter the principal amount: "))
2423
t = float(input("Enter the time period: "))
25-
print(f'T: {t}')
26-
2724
r = float(input("Enter the rate of interest: "))
28-
print(f'R: {r}')
29-
30-
print('-----------')
3125

32-
print("The compound interest is {:.2f}".format(compound_interest(p, t, r)))
26+
print("The compound interest is {:.2f}".format(compound_interest(p, t, r)))

0 commit comments

Comments
 (0)