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