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