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


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

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