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