Computer Science, asked by jkhandelwal, 20 days ago

Display the first and last word (sub-string) of the quote "Hardwork is key to success" using slice operator.

Answers

Answered by alienfighter0000
1

Answer:

Answer:

Explanation:

#ANSWER :  

quote = "Hardwork is key to success"

x = slice(0,8)

y = slice(19,26)

print(quote[x], quote[y])

# Thank you.

Similar questions