Computer Science, asked by sweetathiya, 6 months ago

What will be the output of the following code snippet? [1]

x=”iamaprogrammer”

print(x[2:])

print(x[3:8])​

Answers

Answered by ItzDeadDeal
2

Answer:

\huge\fcolorbox{red}{pink}{Solution:-}

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