If statement Python


#1

Easy question. Why is this if statement not working?


#2

remove

return S