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