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