Level 9 : What is the output of the below code?


import math
x = math.ceil(4.5)
y = math.floor(4.5)

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