Program Development

There are several places in the book that are denoted as check points. I would like you to copy or write these pieces of code and get them to run.

Your code must have the following template:
def main():
  # 3.1 (a)
  print (math.sqrt (4))

  # 3.1 (b) 
  print (math.sin (2 * math.pi))

  ...
   
  # 3.11
  sum = 2 + 3
  print (sum)
  s = '2' + '3'
  print (s)

  ...

  # 3.16
  s = " \tGood\tMorning\n"
  print (s)
  s = s.strip()
  print (s)

  ...

  # 3.24
  print (format ("Programming is fun", "25s"))
  print (format ("Programming is fun", "<25s"))
  print (format ("Programming is fun", ">25s"))

main()
Make sure that this program runs and that you are familiar with the output of the statements that you wrote. This program does NOT have to be turned in. However, you are likely to see variations of this program in the quiz on Friday.

Please write answers to the following questions: