Level 5 : What will be the output of the following code?


int1 = 10  
int2 = 6  
if int != int2:  
    int2 = ++int2  
    print(int1 - int2)

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