Level 1 : What's the output for below code?


str1= '{3},{1} and {0}'. format('p','r','i')
print(str1)

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