Lab 8 – Python
[pdf-embedder url="http://www.alltestanswers.com/wp-content/uploads/2019/06/Lab-82.pdf" title="Lab 8(2)"] Answer: Q1 [php] ##Display the output header print(" {0} {1}".format(" Simple Interest", " Compound Interest")) start = 1000 simple_interest = start compound_interest = start ##Loop through years 1 to 4 for k in range(1, 5): ##calculate the amount after 4 years using simple ...
Continue reading