Computer Science
Find the errors. Find the line numbers causing errors.
- S = "PURA VIDA"
- print(S[9] + S[9 : 15])
Related Questions
Find the output if the input string is 'Test'.
S = input("Enter String :") RS = " " for ch in S : RS = ch + RS print(S + RS)Find the output if the input string is 'Test'.
S = input("Enter String :") RS = " " for ch in S : RS = ch + 2 + RS print(S + RS)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 * 2
- S2 = S1[-19] + S1[-20]
- S3 = S1[-19 :]