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