Level 5 : What will be the output of the following Python code snippet?


print('ab cd ef'.title())

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