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