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