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