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