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


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

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