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