Computer Science, asked by lakshyaanant70, 6 months ago

Consider the String-str2=”Hello Everyone”
A) Find the output of-str2[:]
B) Find the output of-str2[:7]
C) Find the output of-str2[7:]
D) Find the output of-str2[-11:-3]
E) Find the output of-str2[-2:-9:-1]
F) Find the output of-str2[-4:-10:-2]

Answers

Answered by Oreki
2

1) Hello Everyone

2) Hello E

3) veryone

4) lo Every

5) noyrevE

6) yeE

Answered by anindyaadhikari13
2

Question:-

  • Write the output of the following code.

Output:-

  1. Hello Everyone
  2. Hello E
  3. veryone
  4. lo Every
  5. noyrevE
  6. yeE
Similar questions