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 | 1736+ Python FAQs | Share
inheritance | string-method | slice | pickling-&-unpickling | virtual-environment | error-handling | collections | matrix | mathematical-function | input-function | max-min | destructor | statement | conversion | generator | class | string-formatting | enumerate() | floating-point-precision | function-argument | indentation | touples | factorial-function | odd-number | heap-memory | map-function | file | sorted | lists | list-method | with-statement | deep-copy | function-and-scope | polymorphism | list-comprehension | dictionaries | operator-and | while-and-for-loop | exception-handling | datatype | decorator | string-iteration | version-check | sys | while-else-loop | python-repl | return-statement | encapsulation | matplotlib | goto-function | string-concatenation | method | for | context-manager | application | nested-loop | condition | async | syntaxerror | name-mangling | asyncio | objects | loops | exponentiation | sum-function | list-operation | set-operation | generators | type-conversion | def | typeerror | append | syntax-error | shallow-copy | __all__-attribute | lambda | pep | matrix-list-comprehension | update | design-principle | logical-operator | turtle | implementation | pandas | constructor | module | operator-overloading | formal-and-actual-parameter | gil | binary-operation | expand-tab | input | magic-method | call | input-function | random-function | while-loop | assert | comment | functions | iterator | command-line-parsing | type-conversion | data-structure | comprehension | sum() | mathematics | logical-operator | min-function | functional-programming | default-mutable-argument | escape-operator | random | feature | filter | multiple-inheritance | __future__ | package-management | yield | operators | python-history | methods | print | decimal | function | postfix | invalid-list | zip | python-django | numpy | conditional-statement | file-handling | init | oops | python | __init_subclass__ | access-modifier | choice | range | file_handling | installation | counter-function | list-vs-tuple | frozenset | iterable | operator | arithmetic-operation | comparison | zip-function | precedence-and-associativity | pseudocode | type_conversion | python_version | mutable | generators-in-python | bitwise-operator | join | data-structure | global-variable | round-function | recurssion | arithmetic-expression | raise | data-structures | inherit | integer | fabs-function | error | operand | lambda-function | syntax-error | boolean | class-and-object | control-flow | assignment-operator | namedtuple | head-and-tail | data_structure | built-in-function | string-slicing | swapping | loop-control | sys-module | bitwise | dicts | data-type | mysql | staticmethod | keyword | virtual-environment | string | math-copysign | attribute | exception | bitwise-operator | immutability | sorting | encoding | library | benefit | format | object-attribute | complex | control-statement | built-in | slicing | collection | tuple | oop | global-variable | class-and-inheritance | string-manipulation | center | class-and-instance-variable | import-method | match | thread | precedence | memory | multithreading | immutable-data-type | higher-order-function | complex-number | zfill-function | asyncio-module | identifier | datetime | operations | loop | tuple-unpacking | set | threading | else-statement | string-formatting | recursion | indexing | math | syntax | counter | list-join | parameter | numeric | version | identity-operator | string-method | memory-management | control-flow | split | logical-operation | overflow | regex | round | basic | debugging | array | dictionary | string-slicing | python-module | compute | classes | docstring | identity-operator | filter-function | list-comprehension | conditional-statement | boolean-and-non-boolean | list-slicing | scientific-notation | global-keyword | exception-handling | rollback | namespace | list-mutation | multiprocessing | int | data-type | interpreter | variable | min-max-function | copy | file-handling | software-design | print-statement | regular-expression | global | list | operator-or | stack | built-in-function | static-method | descriptors | mapping-function | binary | list-indexing | lambdas | expression | id-function ...