Junior — Senior
Converting text to uppercase
livecode
Task condition
In this code fragment, the string 'python' is converted to uppercase. What will be the output? Answer options:
- Python
- python
- PYTHON
- error
txt = 'python'
for i in range(len(txt)):
txt[i] = txt[i].upper()
print(txt)