Respuesta :

Answer:

Written in Python

userinput = input("Enter a string: ")

print(userinput[0]+userinput[-1])

Explanation:

The code is straight forward and self explanatory.

The first line prompts user for input

userinput = input("Enter a string: ")

This line gets and prints the first and last character of user input

print(userinput[0]+userinput[-1])