如何让脚本只 return 他们输入的名字的一个字母?

How to get the script to only return one letter of the first name they Input?

我想弄清楚如何只获取他们输入的名字的第一个字母,但我尝试过的所有方法或查看其他类似问题都无济于事。

这应该有效:

name = input("name:")
first_letter = name[0] 
print(first_letter)