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