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

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