8
Nawap
7y

Happy New Year Folks !

Comments
  • 2
    You got 3 useless vars in your code.

    Just kidding. Happy new year!
  • 1
    Man, that code style's bugging me :P
    Apart from that, happy new year :D
  • 0
    @SilentCoder
    Tell what are you missing,other than comments ,that's bugging you
    BTW I typed it in Mobile ..
  • 1
    @Nawap
    - no blank line after the imports (not that bad for actually)
    - two spaces after def instead of one
    - no spaces surrounding =
    - the space between function name and argument list

    But I mean, it's not like you created it to be nice code; it's a new year's wish.
  • 0
    @SilentCoder
    Actually new to python ,so don't know code styles , I usually follow Java style.
    Class names capital,
    Function names in camelCase
    Thanks man
    As u said it was not meant to write nice code!😀
  • 1
    @Nawap In Python one usually uses 'UpperCamelCase' for class names and 'lowercase' or 'snake_case' for everything else, except constants which use 'CONSTANT_CASE'
Add Comment