Given a string S = “CARPE DIEM”. If n = 4 then what would following return?
(a) S[:n] (b) S[n:] (c) S[n:n] (d) S[1:n]
Answers
Answered by
1
Answer:
hello,
Explanation:
a)'CARP'
b)'E DIEM'
c)' '
d)'ARP'
________________
PLEASE REFER TO THE ATTACHMENT :)
_________________
hope it helps you
please mark brainliest
@ItzSnowySecret07
Attachments:
Answered by
1
- answer is in the attachment
- hope it will help you!!
- mark as brainleist!!
Attachments:
Similar questions