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

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