What will be the output of the following code snippet? [1]
x=”iamaprogrammer”
print(x[2:])
print(x[3:8])
Answers
Answered by
2
Answer:
Its depends in which language you are using it.
like for example in python this will simply give an error because you can't add a string and a int in python
but in some languages like c sharp (c#) you can indeed add a string and an int.
Similar questions
Biology,
3 months ago
Computer Science,
3 months ago
Geography,
8 months ago
Chemistry,
11 months ago