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


int1 = 0b0010   
print(int1)

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