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