Computer Science
Find the errors. Find the line numbers causing errors.
- S = "PURA VIDA"
- S1 = S * 2
- S2 = S1[-19] + S1[-20]
- S3 = S1[-19 :]
Related Questions
Find the errors. Find the line numbers causing errors.
- S = "PURA VIDA"
- print(S[9] + S[9 : 15])
Find the errors. Find the line numbers causing errors.
- S = "PURA VIDA"
- S1 = S[: 10] +S[10 :]
- S2 = S[10] + S[-10]
Find the errors. Find the line numbers causing errors.
- S = "PURA VIDA"
- S1 = S[: 5]
- S2 = S[5 :]
- S3 = S1 * S2
- S4 = S2 + '3'
- S5 = S1 + 3
What is the output produced?
(i) >>> "whenever" .find("never")
(ii) >>> "whenever" .find("what")