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