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