Friday, February 7, 2020

Python:          
                                                                                   
 BUILT A CALCULATOR:

How do you calculate in Python?
Let see you have a list of numbers and you want to calculate the sum of numbers present in the list.
  1. All you need to do is to iterate a list using a for loop and add each number to a sum variable.
  2. Calculate the length of a given list(total numbers in a list) and divide the sum by total length to calculate average.




calculator code:

                     
calculator code 

   output:

                      
output