Level 1 : What will be the output of the python code?


x=8901 
res='integers:...%d...%-6d...%06d' %(x, x, x)
res

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