Tail

Report a typo

Sentences generally end with a certain punctuation mark: a period ., an exclamation point !, or a question mark ?.

Find out which of these symbols marks the end of a string stored in the variable sentence and print it out.

The variable sentence is already defined. You are not supposed to create a new one.

Sample Input 1:

What a lovely day!

Sample Output 1:

!
Write a program in Python 3
sentence = input()

# now print the last symbol of `sentence`
___

Create a free account to access the full topic