Computer Science, asked by kanchikhurana, 8 months ago

write a program to input a string and display its last word only​

Answers

Answered by lostworldearth
0

Answer:

In python 3

Explanation:

string = (input()).split()

print(string[-1])

Attachments:
Similar questions