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


int1 = 0b0010   
print(int1)

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