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