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