Level 10 : What is error occurs when we execute the following code?


ram = abhi

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