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


int1 = 0b0010   
print(int1)

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