Sunday, June 5, 2022

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

Issue

I am trying to figure out how to get only the first letter of the first name they input but everything I tried or look at other similar problems doesn't help.

id='dv3'>

Solution

this should work:

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


Answered By - Lucifer_uwu
Answer Checked By - Pedro (WPSolving Volunteer)