loops and lists in this programming starts to become useful the concepts introduced in the previous are essential building blocks in all computer programsbut our example programs only performed few calculationswhich we could easily do with regular calculator in this we will introduce the concept of loopswhich can be used to automate repetitive and tedious operations loops are used in most computer programsand they look very similar across wide range of programming languages we will primarily use loops for calculationsbut as you gain more experienceyou will be able to automate other repetitive tasks two types of loops will be introduced in this the while loop and the for loop both will be used extensively in all subsequent in addition to the loop conceptwe will introduce boolean expressionswhich are expressions with true/false valueand new variable type called listwhich is used to store sequences of data loops for automating repetitive tasks to start with motivating exampleconsider again the simple interest calculation formulaa ( ( / )) in we implemented this formula as single-line python programbut what if we want to generate table showing how the invested amount grows with the yearsfor instancewe could write and in two columns like this (cthe author( sundnesintroduction to scientific programming with pythonsimula springerbriefs on computing