Display the first and last word (sub-string) of the quote "Hardwork is key to success" using slice operator.
Answers
Answered by
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
Social Sciences,
10 days ago
Hindi,
10 days ago
Accountancy,
20 days ago
Social Sciences,
20 days ago
English,
8 months ago
Geography,
8 months ago