+ 3
First of all, you wrote the code wrong. It should be print(("hey".upper()).lower()). Second, it does the following: 1. It first makes the word "hey" UPPERCASE because the "hey".upper() is surrounded by the parentheses. 2. It then makes the resulting word "HEY" lowercase so it prints "hey"
9th Feb 2019, 5:08 PM
EoflaOE
EoflaOE - avatar