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


int1 = 0b0010   
print(int1)

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