Level 1 : What is the output of the following code.


import math
print(math.fabs(-9.54))

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