Computer Science, asked by kanchikhurana, 6 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