Operations on Strings?!: The len() function in Python returns the length of the string when a string is passed as an argument.

For example, len(‘Python’) would return an integer value 6.

With this in mind, what would be the output of the following code?

x = 'len'
x[len(x * 2) - 5]
Tags
programsbuzz banner