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