Level 9 : What is the output of the following python programs?


print(0b101)
print(0o10)
print(0x1F)

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