Q1

PHOTO EMBED

Wed Dec 28 2022 07:29:54 GMT+0000 (Coordinated Universal Time)

Saved by @qeebza

sentences = input("Enter a sentences: ")
word = sentences.split()
print(f"Number of fisrt word: {len(word)}")
print(f"First word: {word[0]}")
print(f"Last word: {word[-1]}")
content_copyCOPY