Computer Science, asked by daleisipranjali, 5 months ago

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 Anonymous
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 parijaini
1

\huge{\mathcal{\purple{A}\green{N}\pink{S}\blue{W}\purple{E}\green{R}\pink{!}}}!

  • answer is in the attachment
  • hope it will help you!!
  • mark as brainleist!!

Attachments:
Similar questions