+ 1

Error Symbol error?

Sorry for the very noob question. Thought I had a handle on methods but clearly I don't. What am I doing wrong? I've checked it a billion types and I'm 99% sure it's not a typo? I think my syntax is correct? Please help a very tired beginner, thank you ♄ https://code.sololearn.com/cRe2n6H4DP2U/?ref=app

21st Feb 2020, 8:00 AM
M.E.
4 Answers
+ 2
You are creating an instance of a method, which is not possible. You create instance of a class and not of methods. Also you have not called the Attempt method so that it might return something. This is how you should do it. https://code.sololearn.com/cI0hTH0KmHNU/?ref=app
21st Feb 2020, 8:05 AM
Avinesh
Avinesh - avatar
+ 1
Avinesh okay yeah I see what you did there! Sorry, still trying to get my bearings. Appreciate your help!
21st Feb 2020, 8:11 AM
M.E.
+ 1
M.E. Never mind, you will get there.
21st Feb 2020, 8:11 AM
Avinesh
Avinesh - avatar
0
Avinesh wait actually I see what you're saying. I think I figured out my mistake. Let me see if I can remedy it. edit: updated code after reading Avinesh's response, no more error! no promises the syntax is clean, but that's the next step in my journey â˜ș
21st Feb 2020, 8:08 AM
M.E.