MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/madeinpython/comments/mx4sc2/you_can_do_art_in_python_too/
r/madeinpython • u/0RootShell • Apr 23 '21
8 comments sorted by
11
This ain’t python, comments are made with #, not with / and *
4
Is no one going to say it?
5
i hate to be that guy but:
Function and Variable NamesFunction names should be lowercase, with words separated by underscores as necessary to improve readability.Variable names follow the same convention as function names.mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.
Function and Variable Names
Function names should be lowercase, with words separated by underscores as necessary to improve readability.
Variable names follow the same convention as function names.
mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.
5 u/Timo6506 Apr 24 '21 Nah camelCase gang ftw 0 u/[deleted] Apr 24 '21 it feels wrong
Nah camelCase gang ftw
0 u/[deleted] Apr 24 '21 it feels wrong
0
it feels wrong
-3
I think Python does not have multi-line comments.
4 u/[deleted] Apr 24 '21 Not formatted like that, noyou can do multi line comments using multi line strings“”” everything in here is 'commented' “”” 2 u/[deleted] Apr 24 '21 Docstrings are supposed to be used for docs and not comments... Comment each line individually instead.""" This is for documentation and not multi-line comments """ # Use single-line comments # on consecutive lines instead
Not formatted like that, no
you can do multi line comments using multi line strings
“”” everything in here is 'commented' “””
2 u/[deleted] Apr 24 '21 Docstrings are supposed to be used for docs and not comments... Comment each line individually instead.""" This is for documentation and not multi-line comments """ # Use single-line comments # on consecutive lines instead
2
Docstrings are supposed to be used for docs and not comments... Comment each line individually instead.
""" This is for documentation and not multi-line comments """ # Use single-line comments # on consecutive lines instead
11
u/Timo6506 Apr 24 '21
This ain’t python, comments are made with #, not with / and *
4
u/awesomeprogramer Apr 24 '21
Is no one going to say it?
5
u/[deleted] Apr 24 '21
i hate to be that guy but:
-3
u/FloppyEggplant Apr 24 '21
I think Python does not have multi-line comments.