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