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