Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialLaone Moshana
4,082 Pointsinstance objective
i am stuck because i do not understand what the task requires me to do
1 Answer
James Joseph
4,885 PointsSo 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.