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


int1 = 0b0010   
print(int1)

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