Level 1 : What is the output of the following code?


print(-18 // 4)

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