Level 1 : After calling the fun function, what is the new content of the list p?


def fun(values):
    values[0] = 1
p = [2,3,4]
fun(p)
print(p)

Author: Pavan | Tags: list-mutation | 1736+ Python FAQs | Share
sum-function | pep | goto-function | frozenset | command-line-parsing | keyword | zfill-function | slice | operator-overloading | sys | pickling-&-unpickling | random | inheritance | call | multiple-inheritance | factorial-function | method | touples | virtual-environment | immutability | string-method | counter | default-mutable-argument | iterator | min-max-function | boolean-and-non-boolean | expression | mapping-function | iterable | pseudocode | name-mangling | __init_subclass__ | split | magic-method | choice | dicts | function-and-scope | python-module | docstring | built-in | expand-tab | loop | function-argument | floating-point-precision | error-handling | condition | escape-operator | max-min | bitwise-operator | while-loop | higher-order-function | oop | built-in-function | software-design | identifier | static-method | input-function | attribute | __future__ | syntax-error | statement | precedence | exception-handling | python | operand | decorator | implementation | oops | indentation | return-statement | swapping | exception | list | mutable | python-history | control-flow | stack | global-keyword | variable | polymorphism | asyncio-module | function | filter | print | list-join | operators | interpreter | control-flow | with-statement | numeric | mathematics | conditional-statement | collections | comment | identity-operator | syntax | comprehension | lists | join | sorting | descriptors | memory-management | string-method | invalid-list | conversion | built-in-function | data-structure | design-principle | constructor | list-indexing | sorted | shallow-copy | file_handling | random-function | data-type | input-function | recursion | postfix | class-and-object | global-variable | string-concatenation | logical-operation | integer | pandas | arithmetic-operation | package-management | basic | assert | binary-operation | sum() | recurssion | lambda-function | decimal | filter-function | context-manager | bitwise-operator | matplotlib | generators | global | complex-number | __all__-attribute | data-structure | math-copysign | generator | multiprocessing | memory | methods | operator-or | match | for | library | input | class-and-inheritance | functions | benefit | class | slicing | min-function | arithmetic-expression | generators-in-python | thread | application | rollback | exponentiation | list-vs-tuple | data_structure | loop-control | indexing | turtle | file | print-statement | dictionary | error | dictionaries | global-variable | syntax-error | compute | list-slicing | boolean | exception-handling | append | data-structures | identity-operator | namespace | async | python-repl | update | logical-operator | type-conversion | odd-number | precedence-and-associativity | counter-function | fabs-function | parameter | string-slicing | zip | round-function | string | map-function | regex | typeerror | matrix-list-comprehension | module | functional-programming | file-handling | comparison | conditional-statement | string-formatting | init | copy | operator | mysql | set | regular-expression | lambdas | numpy | feature | bitwise | datetime | installation | deep-copy | asyncio | nested-loop | list-comprehension | list-comprehension | list-operation | object-attribute | string-manipulation | namedtuple | matrix | classes | objects | set-operation | tuple-unpacking | operations | control-statement | file-handling | mathematical-function | while-and-for-loop | array | type-conversion | sys-module | string-iteration | version-check | raise | destructor | threading | format | operator-and | math | scientific-notation | lambda | head-and-tail | string-slicing | loops | list-method | gil | int | heap-memory | round | formal-and-actual-parameter | logical-operator | encoding | import-method | class-and-instance-variable | overflow | center | yield | multithreading | data-type | zip-function | immutable-data-type | binary | assignment-operator | syntaxerror | string-formatting | collection | version | staticmethod | enumerate() | list-mutation | encapsulation | inherit | debugging | datatype | virtual-environment | id-function | def | range | else-statement | tuple | python_version | complex | python-django | while-else-loop | type_conversion | access-modifier ...