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


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

Author: SandhyaR | Tags: string-manipulation | 1736+ Python FAQs | Share
library | immutability | global-variable | module | pseudocode | exception | list-comprehension | print | higher-order-function | overflow | control-flow | input | logical-operator | regular-expression | operators | string-concatenation | map-function | package-management | logical-operator | built-in | set-operation | staticmethod | binary-operation | static-method | encoding | encapsulation | stack | memory | while-else-loop | operator-and | generators | sys | bitwise | implementation | generator | operator-overloading | python-repl | bitwise-operator | namespace | datatype | input-function | data-structure | multithreading | method | def | classes | factorial-function | pep | oop | list | operator | immutable-data-type | collections | complex-number | list-slicing | constructor | input-function | keyword | lists | exponentiation | functional-programming | assert | version | fabs-function | syntax-error | inherit | precedence-and-associativity | asyncio-module | zip | data-type | mutable | round | identity-operator | class-and-object | built-in-function | feature | asyncio | design-principle | magic-method | choice | matplotlib | init | global | nested-loop | type_conversion | function-and-scope | arithmetic-operation | range | syntax-error | list-operation | with-statement | data-structures | else-statement | random | formal-and-actual-parameter | arithmetic-expression | counter-function | __future__ | pickling-&-unpickling | name-mangling | debugging | polymorphism | conditional-statement | heap-memory | sorted | dictionary | collection | logical-operation | boolean | docstring | matrix-list-comprehension | slice | numpy | floating-point-precision | loop | class-and-inheritance | error-handling | swapping | mysql | filter | call | string-manipulation | filter-function | match | async | split | comparison | tuple | __all__-attribute | numeric | datetime | turtle | string-slicing | expand-tab | string-method | lambdas | default-mutable-argument | slicing | while-and-for-loop | raise | data-type | list-vs-tuple | zip-function | postfix | sum() | regex | virtual-environment | comprehension | loops | global-variable | class | string-formatting | operations | context-manager | yield | thread | attribute | error | array | goto-function | string-slicing | multiple-inheritance | file-handling | mathematics | access-modifier | iterator | global-keyword | application | conditional-statement | python-django | binary | precedence | expression | benefit | dicts | bitwise-operator | type-conversion | min-max-function | shallow-copy | int | frozenset | interpreter | complex | odd-number | software-design | return-statement | decimal | mapping-function | deep-copy | object-attribute | head-and-tail | type-conversion | enumerate() | control-flow | exception-handling | join | control-statement | class-and-instance-variable | append | data_structure | scientific-notation | list-join | command-line-parsing | id-function | set | version-check | iterable | sys-module | threading | indentation | descriptors | functions | identity-operator | installation | counter | exception-handling | dictionaries | assignment-operator | touples | function-argument | sorting | namedtuple | variable | statement | built-in-function | generators-in-python | integer | list-comprehension | invalid-list | min-function | sum-function | condition | recurssion | copy | pandas | file-handling | math-copysign | basic | syntax | for | list-method | print-statement | python | methods | zfill-function | string-method | comment | loop-control | parameter | lambda | oops | operator-or | import-method | indexing | compute | center | memory-management | escape-operator | multiprocessing | update | python-history | lambda-function | math | operand | data-structure | python-module | syntaxerror | python_version | format | rollback | string | gil | objects | tuple-unpacking | string-iteration | inheritance | destructor | conversion | decorator | __init_subclass__ | file_handling | identifier | random-function | list-indexing | max-min | recursion | typeerror | list-mutation | round-function | matrix | string-formatting | boolean-and-non-boolean | file | virtual-environment | mathematical-function | while-loop | function ...