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