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


print("abc. DEF".capitalize())

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