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


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

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