Level 1 : What will be the output of the following code?


p = 5/5.5
s = 5*5.5
print(p//s)

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