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


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

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