Level 9 : How to get the absolute value of a number in the below?

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