Level 1 : The output of the below following code?


def func(num):
     return num+5;

func(10)
print(num)

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