Level 4 : What will happen?


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

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