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


int1 = 0b0010   
print(int1)

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