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