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

Author: bhavani | Tags: comment | 1736+ Python FAQs | Share
error-handling | pep | data_structure | recurssion | type_conversion | data-structures | precedence | type-conversion | heap-memory | list-slicing | constructor | overflow | global | type-conversion | version | variable | min-function | slice | error | else-statement | multiprocessing | library | decimal | escape-operator | python-repl | global-keyword | arithmetic-expression | loop | keyword | default-mutable-argument | control-statement | formal-and-actual-parameter | encoding | min-max-function | command-line-parsing | regex | boolean | touples | data-type | memory | join | round | operator | init | sys | methods | memory-management | file-handling | asyncio-module | application | rollback | virtual-environment | string-iteration | class-and-instance-variable | iterator | debugging | exception | swapping | yield | filter | pickling-&-unpickling | threading | operators | turtle | __future__ | global-variable | string-slicing | recursion | complex | global-variable | while-loop | random | benefit | destructor | data-structure | slicing | bitwise-operator | method | virtual-environment | context-manager | string-formatting | list-operation | string-concatenation | set | staticmethod | basic | python | format | datetime | python-history | list-mutation | id-function | counter-function | def | collections | compute | implementation | syntax | polymorphism | call | conversion | expression | counter | string | random-function | multithreading | print-statement | array | oops | list-join | math-copysign | lambda | enumerate() | integer | conditional-statement | comprehension | goto-function | syntax-error | mathematics | match | matrix | generator | string-method | operator-or | functions | tuple-unpacking | return-statement | matplotlib | function-and-scope | append | numeric | comparison | gil | floating-point-precision | precedence-and-associativity | postfix | while-and-for-loop | file_handling | installation | loops | python-module | fabs-function | class-and-object | immutable-data-type | while-else-loop | sorting | head-and-tail | arithmetic-operation | dictionaries | multiple-inheritance | namespace | list-indexing | operator-overloading | feature | inherit | classes | odd-number | function | sorted | map-function | exponentiation | input | lambdas | string-formatting | input-function | import-method | filter-function | software-design | indexing | asyncio | split | stack | binary-operation | regular-expression | string-method | operand | collection | logical-operator | tuple | assert | set-operation | sum-function | immutability | frozenset | package-management | string-slicing | dictionary | async | generators | list-comprehension | scientific-notation | sum() | exception-handling | lambda-function | objects | python_version | string-manipulation | control-flow | list-comprehension | copy | factorial-function | expand-tab | boolean-and-non-boolean | numpy | built-in-function | thread | round-function | mutable | choice | built-in | deep-copy | generators-in-python | magic-method | zip | file | bitwise-operator | syntax-error | decorator | logical-operator | name-mangling | int | functional-programming | docstring | list-vs-tuple | logical-operation | print | dicts | identity-operator | iterable | binary | operator-and | encapsulation | loop-control | conditional-statement | built-in-function | math | zip-function | higher-order-function | python-django | object-attribute | list | class-and-inheritance | __all__-attribute | range | parameter | list-method | bitwise | access-modifier | for | invalid-list | data-type | max-min | attribute | version-check | indentation | __init_subclass__ | static-method | comment | condition | identity-operator | complex-number | statement | class | input-function | function-argument | descriptors | update | datatype | nested-loop | data-structure | sys-module | syntaxerror | namedtuple | raise | identifier | pandas | shallow-copy | exception-handling | assignment-operator | control-flow | mapping-function | design-principle | mathematical-function | interpreter | pseudocode | with-statement | file-handling | zfill-function | module | oop | operations | matrix-list-comprehension | inheritance | typeerror | lists | center | mysql ...