Level 9 : What will be the output of the following code snippet?


from math import *
a = 2.19
b = 3.999999
c = -3.30
print(int(a), floor(b), ceil(c), fabs(c))

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