Posts

Showing posts from April, 2020

Find Angle MBC | HackerRank solution in python3

import   math ab = int ( input ()) bc = int ( input ()) print ( str ( int ( round ( math . degrees ( math . atan2 ( ab , bc ))))) +  "° " )

Oasis -Wonderwall | Chords

Image
Capo: 2nd fret   DDUUDDDU DDUUDDDUDUD [Intro] Em   G   D   A7sus4 Em   G   D   A7sus4 Em   G   D   A7sus4 Em   G   D   A7sus4 [Verse 1] Em       G Today is gonna be the day               D                   A7sus4 That they're gonna throw it back to you Em           G By now you should've somehow     D                 A7sus4 Realised what you gotta do Em                   G I don't believe that anybody   D           A7sus4             C   D   A7sus4 Feels the way I do about you now [Verse 2] Em           G Backbeat the word is on the st...

Aama Guitar Chords | Sushant KC

Image
Capo on 3rd Fret Intro : C  F  C  G ] – 2 Verse 1 C              F            C                  G Nau nau mahina kokh ma rakhi timle C                F                    C                 G Bhitrayou malai yo sansaar ma boki jati C              F             C          G Kathin paristithi aayepani timle C              F             C          G Huna denau ama kei pani timro Am         G                F       F Maya ra mamata apaar, G………….Am  ...

Time Delta | HackerRank solution using Python3

#!/bin/python3 import   math import   os import   random import   re import   sys from   datetime   import   datetime # Complete the time_delta function below. def   time_delta ( t1 ,   t2 ):      time_format  =  '%a %d %b %Y %H:%M:%S %z'      t1  =  datetime . strptime ( t1 ,   time_format )      t2  =  datetime . strptime ( t2 ,   time_format )      return   str ( int ( abs (( t1 - t2 ) . total_seconds ())))          if  __ name__  ==  '__main__' :      fptr  =  open ( os . environ [ 'OUTPUT_PATH' ],   'w' )      t  =  int ( input ())      for   t_itr   in   range ( t ):  ...

Collections.namedtuple() | HackerRank solution in python 3

from  __ future__   import   division import   collections N = int ( input ()) columns = ',' . join ( input () . split ()) Student = collections . namedtuple ( 'Student' , columns ) sum = 0 for   i   in   range ( N ):      line  = input () . split ()      student = Student ( * line )      sum += int ( student . MARKS ) print ( sum / N )

Exceptions | HackerRank solution in python 3

for  _  in   range ( int ( input ())):      a , b = input () . split ()      try :          print ( int ( a ) // int ( b ))      except   Exception   as   e :          print ( 'Error Code: '  +  str ( e ))

Aasar -guitar chords (Bipul chettri )

[Intro] DUDD   Gadd9 Cadd9 Pani paryo sarara, chana bajyo garara Gadd9 Caad9 Manama uthyo aaja mero ananda ko lahara [Chours] Em C         Hijo ko bipana, aaja bhaye cha sapana D C Eh kanchi, kati chadaai biteko yo jiwana? Gadd9 C Pani paryo sarara, bhijyo Kalimpong sahar G C G Kalo kalo badaal Chadi pharki aayo Asaar D La haai G C G D [Verse] Em C G D Jindagi kahile gham kahile pani, lai bari lai Em C     G D Maya nai sabai bhanda thulo kuro raicha Ni hai Em C G D Charai tira nila nila aakash nai chaiyo hai Em C G D Wari pari lageko yo kuhiro harayo hai Em C Manalai sacho rakhi hidi rahe chu Em C slide Ma timro sahara ma bachi rahe chu, mayalu [Hook] G C Pani paryo sarara, choda bagyo garara G C Pharki aaye timrai tira chadi sara sansar [Chorus] Em C Hijo...