Could not use the 'Isinstance' to check user´s Input in Python as proposed by the Python learning module

Danilo Rodrigues Alexandre 41 Reputation points
2021-07-27T13:48:30.707+00:00

Hi Team,

I am taking the Python learning path and one of the proposed challenges were to accept only the user input as a 'List'. Otherwise, it returns a empty list

I also tried to use the 'isintance' function the same way that the was proposed as solution by the course/module but it did not work for me at all which I am struggling to understand the reason why. Both code screenshots as well as the error when calling my function it are right below
Really appreciate any help on this

Note: Could not find any related python or Visual Studio Code tag so I have used the Azure Functions. Maybe any of the dev experts can jump in and help to clarify it.

Microsoft Resolution - 'isintance' worked and identify 'list' as "Class" properly

118361-image.png

My code - 'isintance' does not work as 'list' is not identified as Class

118293-image.png

Error when calling my function - 'list' is not identified as Class as it should be

118294-image.png

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,978 questions
0 comments No comments
{count} votes

Accepted answer
  1. WhTurner 1,611 Reputation points
    2021-07-27T15:08:37.047+00:00

    As a Small Basic user I can't answer this question.

    Perhaps you should use a Python related tag.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.