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