user_name = input("Enter a name: ") #the above is always a string # to input a number wrap it into an int principle_amount = int(input("Enter the principle amount: ")) interest_rate = float(input("Enter the interest rate: ")) investment_period = int(input("Enter the period of investment: ")) amount=principle_amount * (1+ interest_rate)** investment_period print(f"Hi {user_name} the amount invested over {investment_period} will be {amount}") excellent easy to learn
user_name = input("What is your prefered User name? ") age =input("What is your age: ") with open("user_info.txt", "w") as f: f.write(f"Your user name is {user_name.capitalize()} and age {age}")
Your lessons are just excellent contetnwise and teachingwise. 10/10 man. Bring us more soon please. Prayers for you.
Thanks :) I do plan to do more tutorials and videos like this so please stay tuned!
user_name = input("Enter a name: ")
#the above is always a string
# to input a number wrap it into an int
principle_amount = int(input("Enter the principle amount: "))
interest_rate = float(input("Enter the interest rate: "))
investment_period = int(input("Enter the period of investment: "))
amount=principle_amount * (1+ interest_rate)** investment_period
print(f"Hi {user_name} the amount invested over {investment_period} will be {amount}")
excellent easy to learn
🎉wow tremendous experiences and after completed for python courses and can you please start on playwright from scratch ?
you just landed us into some complex stuff without introduction : import lol
user_name = input("What is your prefered User name? ")
age =input("What is your age: ")
with open("user_info.txt", "w") as f:
f.write(f"Your user name is {user_name.capitalize()} and age {age}")