Saturday, 3 February 2018


ii) float :
          >>> type(124.0)
          <class 'float'>

         >>> 1287*82
         105534
          >>> type(124.0)
          <class 'float'>
     
     int multiplied by float:
   
          >>> 1287.21*82
          105551.22
     int raised to float
          >>> 256**0.25
          4.0

      float raised to float
          >>> 625.25**0.5
          25.004999500099974
     float division
          >>> 287/3.438
         83.47876672484001
        
     adding int and float
         >>> 23 + 329.253
        352.253

     mod using float
         >>> 3454.5643%65
        9.564300000000003

No comments:

Post a Comment

Memoization : Memoization is a technique for remembering the results that incur huge costs to running time to the algorithm. Memoizati...