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