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