enter image description here
Can anyone help in resolving this error? As I am not sure why this existing code gives the error.