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


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

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