instance objective

i am stuck because i do not understand what the task requires me to do

1 Answer

James Joseph
James Joseph
2,582 Points

So the question is telling you to make a function that takes an argument.

The argument will be a list of strings and ints/floats

The question is asking you to return a string that will have the string and the combined total of the int and float numbers.

He's asking you to use isinstance because he wants you to check if an item in the list is a int or float.

Your task is to break down the list , check that if the item is an int or float add it together then use return command to return a string of the combined numbers and strings that got passed into.

Have a look at isinstance docs and try and see if you can figure it out. If you get stuck again post what you've done so far and we can try and figure out what you've done so far.