Level 9 : How do you write a single-line comment in Python?

Author: bhavani | Tags: comment | 1859+ Python FAQs | Share
oop | append | iterable | decimal | thread | membership-operators-(in,-not-in) | loops | asyncio-module | list-comprehension | list-methods-and-slicing | memory | key-value-pairs | list-method | multiple-inheritance | mapping-function | access-modifier | built-in | frozenset | global-keyword | lambda-function | immutability | module | arithmetic-expression | logical-operation | memory-management | matplotlib | bitwise-operator | arbitrary-arguments-(*args,-**kwargs) | floats | math-copysign | binary | global-variable | literal-characters-and-special-characters | mysql | lambda-functions | aggregating-data-with-functools.reduce() | function | method-overloading | list,-set,-and-dictionary-comprehensions | math | array | pep | handling-missing-values-(fillna,-dropna) | method | built-in-function | factorial-function | application | head-and-tail | boolean | list-vs-tuple | numpy | min-max-function | join | multiple-except-blocks | arithmetic-operation | comparison | version | walking-through-directories-using-os.walk() | python_version | __init_subclass__ | thread-synchronization | booleans | identity-operator | choice | pseudocode | turtle | list-comprehension | pass | tuple-unpacking | thread-safe-data-structures-(queue.queue) | list-mutation | integers | gil | python-module | class-and-instance-variable | using-map()-for-transformations | generator | input | matrix-list-comprehension | overriding-methods | list-comprehensions | using-lists-as-stacks | type_conversion | precedence | string-method | operators | lambdas | numeric | center | multiple-inheritance | odd-number | built-in-function | string | functional-programming | directory-operations | conversion | benefit | operator-overloading | python-history | swapping | format | lists | heap-memory | max-min | working-with-temporary-files-using-tempfile | shallow-copy | complex | immutable-data-type | creating-and-starting-threads | encoding | exception-handling | reading:-read(),-readline(),-readlines() | identity-operator | rollback | library | threading | default-mutable-argument | generators-in-python | loop-control-statements | type-conversion-and-casting | recursion | software-design | error-handling | complex-number | conditional-statements | asyncio | file-handling | collection | string-method | list-slicing | logical-operators | virtual-environment | sorted | __future__ | string-concatenation | working-with-binary-files-(rb,-wb) | global | error | using-assertions-(assertequal,-assertraises) | class-and-object | keyword | match | assignment-operator | counter-function | round-function | function-argument | map-function | single-inheritance | data-type-conversions | while-else-loop | with-statement | boolean-masking | name-mangling | filtering-and-indexing | static-method | while-loop | higher-order-function | pickling--unpickling | assert | using-os-and-pathlib-modules | statement | deep-copy | global-variable | reading-and-writing-large-files-efficiently | boolean-and-non-boolean | test-discovery | operations | docstring | pandas | regex | error-handling | syntaxerror | __all__-attribute | filter | using-the-threading-module | intering | tuple-methods | set | dictionaries | input-function | attribute | dataframe-and-series-objects | async | functional-programming | sets | reading-and-writing-files | introduction-to-python | multiprocessing | file-handling | comprehension | time-series-with-pandas | encapsulation | zip-function | set-operation | sum() | command-line-parsing | design-principle | data-types | split | type-conversion | list-indexing | overflow | function-and-scope | generators | logical-operator | control-statement | data-structure | string-slicing | feature | list-operation | sys-module | data-type | return-statement | range | tuples | staticmethod | data_structure | python-repl | floating-point-precision | destructor | string-methods | round | syntax-error | mutable | loop-control | scientific-notation | integer | random-function | data-structures | inheritance | oops | regular-expression | formal-and-actual-parameter | difference-between-threads-and-processes | assignment-operators | else | default-arguments | why-use-multiprocessing-over-threading?-(gil) | datatype | anchors-(^,-$) | def | iterator | python-django | regular-expressions | fabs-function | introduction-to-multiprocessing | collections | file | logical-operator | file_handling | dictionary-comprehensions | recurssion | class-and-inheritance | tuple | operator | nested-loop | object-attribute | control-flow | namedtuple | working-with-dates-and-times | matrix | built-in-modules | typeerror | operand | else-statement | string-formatting | dicts | strings | inherit | using-yield-in-functions | operator-or | installation | slice | classes | formatting-with-strftime | bitwise-operator | escape-operator | print | sorting | init | advanced-file-operations | invalid-list | goto-function | python-syntax-and-structure | type-conversion | virtual-environment | compute | string-manipulation | raise | binary-operation | expression | indexing:-loc-vs-iloc | for | loop | import-method | conditional-statement | joining-and-merging-dataframes | bitwise | mathematical-function | lambda | sys | zfill-function | operator-and | exception | data-structure | quantifiers-(*,-+,-?,-{}) | min-function | control-flow | call | conditional-statement | list-join | int | list | postfix | id-function | python | writing:-write(),-writelines() | creating-custom-modules | implementation | indentation | opening-files-(open()) | version-check | input-function | introduction-to-threads | exception-handling | expand-tab | methods | dictionary-methods | python-operators | package-management | yield | functions | class-decorators | interpreter | condition | variable | class | syntax | basic | debugging | magic-method | namespace | filter-function | identity-operators-(is,-is-not) | while-loops | exponentiation | objects | string-slicing | datetime.date,-datetime.time,-datetime.datetime | using-else-and-finally | descriptors | touples | print-statement | zip | while-and-for-loop | identifier | sorting-and-ranking | unit-testing | comment | string-iteration | iterators | multithreading | indexing | slicing | counter | defining-functions | data-type | syntax-error | stack | random | managing-directories-with-os-and-shutil | working-with-file-paths | parameter | raise-statement | context-manager | update | constructor | decorator | precedence-and-associativity | sum-function | using-join()-and-is_alive()-methods | datetime | string-formatting | data-structures-in-python | copy | dictionary | parsing-with-strptime | mathematics | enumerate() | polymorphism ...