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

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