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