Level 10 : What is the output of the following code?


s = "hello"
print(s.upper())

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