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