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


int1 = 0b0010   
print(int1)

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