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


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

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