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

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