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


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

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