Level 1 : What will be the output of this program?


int1 = 0b0010   
print(int1)

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