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


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

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