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


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

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