Level 10 : 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 | 1736+ Python FAQs | Share
collection | postfix | global | loop | set-operation | filter-function | head-and-tail | identity-operator | type_conversion | sys | built-in-function | attribute | asyncio-module | python-django | id-function | virtual-environment | data-structures | file-handling | docstring | precedence-and-associativity | immutability | precedence | data-structure | identifier | debugging | operator | mathematics | threading | inherit | init | return-statement | command-line-parsing | set | complex-number | bitwise-operator | method | loop-control | implementation | append | control-flow | lambda-function | python-repl | __future__ | map-function | installation | exception-handling | complex | comment | asyncio | library | class-and-instance-variable | pickling-&-unpickling | range | operator-overloading | zfill-function | generator | higher-order-function | application | random-function | built-in-function | keyword | binary-operation | matrix-list-comprehension | bitwise | boolean-and-non-boolean | choice | join | iterator | max-min | generators | string-formatting | multithreading | oops | string-method | methods | scientific-notation | stack | multiprocessing | type-conversion | file_handling | exception | exponentiation | shallow-copy | factorial-function | numpy | memory | python | yield | expand-tab | match | version-check | invalid-list | odd-number | namedtuple | function | while-loop | pseudocode | pep | operators | fabs-function | variable | lambdas | list-join | operator-and | statement | static-method | arithmetic-expression | print | logical-operator | thread | string-concatenation | software-design | python-module | round-function | name-mangling | built-in | regex | counter | file | tuple | boolean | inheritance | function-argument | data-structure | decorator | data-type | parameter | identity-operator | functions | input | access-modifier | zip | class | floating-point-precision | split | global-variable | array | __all__-attribute | recurssion | control-statement | conditional-statement | list-slicing | python-history | functional-programming | decimal | module | format | formal-and-actual-parameter | list-comprehension | sum() | syntax-error | enumerate() | feature | syntax | string-manipulation | call | def | control-flow | object-attribute | min-max-function | compute | with-statement | conditional-statement | raise | file-handling | copy | comprehension | logical-operation | indexing | escape-operator | operations | operator-or | magic-method | list-indexing | string-formatting | virtual-environment | while-else-loop | frozenset | recursion | list-comprehension | polymorphism | logical-operator | gil | classes | conversion | list | encapsulation | center | round | condition | filter | mutable | input-function | default-mutable-argument | function-and-scope | sorting | dictionary | encoding | destructor | interpreter | input-function | list-operation | integer | memory-management | lists | sum-function | math-copysign | min-function | matrix | numeric | lambda | datetime | context-manager | version | goto-function | oop | comparison | class-and-object | __init_subclass__ | overflow | global-keyword | arithmetic-operation | import-method | zip-function | slicing | sorted | data-type | multiple-inheritance | syntaxerror | while-and-for-loop | deep-copy | descriptors | for | matplotlib | typeerror | type-conversion | generators-in-python | benefit | update | random | datatype | pandas | error-handling | assignment-operator | print-statement | list-mutation | bitwise-operator | global-variable | mathematical-function | immutable-data-type | string-slicing | swapping | data_structure | nested-loop | constructor | binary | staticmethod | rollback | dictionaries | package-management | python_version | collections | int | exception-handling | string | loops | basic | mysql | assert | namespace | counter-function | indentation | regular-expression | turtle | iterable | list-vs-tuple | error | design-principle | string-slicing | syntax-error | class-and-inheritance | string-method | touples | operand | tuple-unpacking | expression | heap-memory | objects | string-iteration | else-statement | sys-module | mapping-function | slice | math | async | dicts | list-method ...