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