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


int1 = 0b0010   
print(int1)

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