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