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

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