Skip to main content

Posts

Showing posts from July, 2021

color in seaborn heatmap

  'RBG' is not a valid value for name; supported values are 'Accent', 'Accent_r', 'Blues', 'Blues_r', 'BrBG', 'BrBG_r', 'BuGn', 'BuGn_r', 'BuPu', 'BuPu_r', 'CMRmap', 'CMRmap_r', 'Dark2', 'Dark2_r', 'GnBu', 'GnBu_r', 'Greens', 'Greens_r', 'Greys', 'Greys_r', 'OrRd', 'OrRd_r', 'Oranges', 'Oranges_r', 'PRGn', 'PRGn_r', 'Paired', 'Paired_r', 'Pastel1', 'Pastel1_r', 'Pastel2', 'Pastel2_r', 'PiYG', 'PiYG_r', 'PuBu', 'PuBuGn', 'PuBuGn_r', 'PuBu_r', 'PuOr', 'PuOr_r', 'PuRd', 'PuRd_r', 'Purples', 'Purples_r', 'RdBu', 'RdBu_r', 'RdGy', 'RdGy_r', 'RdPu', 'RdPu_r', 'RdYlBu', 'RdYlBu_r...

functions

  1. dedine fuction for % marks      def   percent ( marks ):          p   =  (( marks [ 0 ]  +   marks [ 1 ]  +   marks [ 2 ] +   marks [ 3 ]) / 400  ) * 100          return   p      marks1   =  [ 45 ,  78 ,  86 ,  77 ]      percentage1   =   percent ( marks1 )      marks2   =  [ 75 ,  98 ,  88 ,  78 ]      percentage2   =   percent ( marks2 )      print ( percentage1 ,  percentage2 ) O/P: >>  71.5 84.75

loops - If else, for ,while

IF   1. conditions with If code:  a =   8      1 .  if - elif - else  ladder  in  Python      if ( a < 3 ):           print ( "The value of a is greater than 3" )      elif ( a > 13 ):          print ( "The value of a is greater than 13" )      elif ( a > 7 ):          print ( "The value of a is greater than 7" )      elif ( a > 17 ):          print ( "The value of a is greater than 17" )      else :          print ( "The value is not greater than 3 ...

JavaScript

 This is html <! DOCTYPE   html > < html   lang = "en" > < head >      < meta   charset = "UTF-8" >      < meta   http-equiv = "X-UA-Compatible"   content = "IE=edge" >      < meta   name = "viewport"   content = "width=device-width, initial-scale=1.0" >      < title > Javscript </ title >      < style >          * {              margin :  0 ;              padding :  0 ;         }          .container {              border :  2px  solid red;      ...

My first code in python

 My first code in python code: print ( " Hello world of AVIATOR " ) ''' ******THAnks****** ''' Output: Hello world of AVIATOR