Level 4 : What will happen?


try:
    print(10 / 0)
except ZeroDivisionError:
    print("Error")

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