擅长:python、mysql、java
<p>我希望这就是你的要求:</p>
<pre><code>input1 = input('Enter the two words: ')
input2=input1.split()
def function(input2):
if input2[0][0]==input2[1][0]:
print('True')
else:
print('False')
function(input2) #and then call the function.
</code></pre>