OMG back from 3 months
My fav teacher
Keep going BRO
Make more machines like this please! It's so educating
thanks for explaining so nice the way you teach makes me more interested in your videos warm wishes from INDIA
It has been a few days since having started watching your videos. you are the best!
can you hulp ? with coding a program based on
standard value table
loan interest rate,
initial initial value
basic installment values
you will calculate the value received in each subsequent for the next 2 years
plss
great job man! thank you so much!
I just don't get why you use an if inside a while loop with the same condition, well, if we get inside the while loop, it's obvious that the condition is true and we won't need to check it again by using the if function🤔
Exactly. Can't we just print the warning inside the while loop and then give the user a chance to leave the loop by repeating the initial function? If you get what I mean
Im actually making a compound interest app with future value of a series in JS for one of my portfolio projects : )
It's great to see you with so many subs
I think I prefer the 'While True' function in python, it's a lot easier to understand
Living legend Teacher... GBU Mr. Bro
NICELY DONE BRO...❤
This is not the major objective of this video, but adding a "comma" before the ".2f" to add separator for larger values.
print(f"Balance after {time} years: ${total:,.2f}")
I dont really understand the While True code, isn't 0 False? And what does it based to be True? pls explain to me thx.🙏🙏🙏🙏
hey Bro, what keyboard and mouse are you using?
I was thinking the same same thing because he was like clickety clack clack all the way through the video lol
How would we modify the rates to accept decimal values?
The program accepts decimal values as long as you you have included float in the program instead of int.
Very interesting
Bro is Teaching Math secretly
i wish he wrote out the exercise with a rough guide on how to do the questions before we watch the video instead of just walking us through it straight away
my take on it:
def intrest_calculator():
principle = 0
rate = 0
time = 0
while principle
wait, isn't the formula of compound interest p(1+r/n)^tn? but you did p(1+r)^t
That's right, the formula has 'n' (number of times interest is compounded per year) at the exponent as well...then he just deals with the case n=1 since it's yearly interest: weekly interest would be with n=52, daily with n=365, monthly with n=12, ecc...
Btw the factor 100 he has at the denominator in the line where he defines the total comes from the percentage conversion: if R=3% then r=R/100=0.03
this isn't a compounding calculation your missing N , number of compounding periods
It's Principal not Principle!
bro this is simple Interest
i hate math
# Python compound interest calculator
principle = 0
rate = 0
time = 0
while True:
principle = float(input("Enter the principle amount: "))
if principle < 0:
print("Principle can't be less than zero")
else:
break
while True:
rate = float(input("Enter the interest rate: "))
if rate < 0:
print("Interest rate can't be less than zero")
else:
break
while True:
time = int(input("Enter the time in years: "))
if time < 0:
print("Time can't be less than zero")
else:
break
total = principle * pow((1 + rate / 100), time)
print(f"Balance after {time} year/s: ${total:.2f}")
Why define the variables equal to zero?
@@atalgill5587
Because if we didn't put these variables before the while loop except (while True) python will give us an error cuz its not defined before , so we put these variables before it with zero value and user will overwrite the zero
I hope that was useful :)