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

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