Computer Science, asked by mxavierk45, 9 months ago

Find the output:-
i) "Wow Python"[1]
ii) "Strings are fun"[5]
iii) len("Wonderful")
iv) "Mystery"[:4]
v)"apple">"pineapple"
vi)"pine" in "PineApple"
vii) ("ABC"[2] *4) + "Hai"​

Answers

Answered by haldershayari
1

Answer:

1. o

2.g

3.9

4.Myst

5.false

6.false

7.CCCCHai

Explanation:

for 1 and 2 just take the index no starting from 0

for q 4 string slicing

in q5 p has higher ascii value than a DO NOT SEE LENGTH

in q6 python is case sensitive

Similar questions