Definition of savings and result
savings = 100
result = 100 * 1.10 ** 7
Fix the printout
print("I started with $" + savings+ " and now have $" + result+ " Awesome!")
Definition of pi_string
pi_string = "3.1415926"
savings = 100
result = 100 * 1.10 ** 7
print("I started with $" + savings+ " and now have $" + result+ " Awesome!")
pi_string = "3.1415926"
You can either convert the int
s into str
s like this:
print("I started with $" + str(savings)+ " and now have $" + str(result)+ " Awesome!")
or use a string formatting like this:
print("I started with ${} and now have ${} Awesome!".format(savings, result))