Level 3 : What will be the output of the following Python code? print("Hello {1} and {0}".format('bin', 'foo'))

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