Level 1 : What is a variable defined outside a function referred to as?

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