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

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