Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Nawap13977y@SilentCoder
Tell what are you missing,other than comments ,that's bugging you
BTW I typed it in Mobile .. -
@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. -
Nawap13977y@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!😀 -
@Nawap In Python one usually uses 'UpperCamelCase' for class names and 'lowercase' or 'snake_case' for everything else, except constants which use 'CONSTANT_CASE'
Related Rants
Happy New Year Folks !
joke/meme
2k18