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

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