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