I cannot figure out in python language why the following code shows an error.
The two codes both show an error, for me, them really do the same function.
else if(sentenceSplitted == ‘What’):Next is different way for the same "function".
else if(sentenceSplitted[-1] == ‘?’):
Python has no else if. You should use elif.