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