str1 = " hello python " str2 = str1.strip().upper() str3 = str2.split()[1] print(str3)
hello
python
HELLO
PYTHON