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