What\'s wrong with this cell? Question 1. Suppose you have 4 apples, 3 oranges,
ID: 3876269 • Letter: W
Question
What's wrong with this cell?
Question 1. Suppose you have 4 apples, 3 oranges, and 3 pineapples. (Perhaps you're using Python to solve a high school Algebra problem.) Create a table that contains this information. It should have two columns: "fruit name" and "count". Give it the name fruits Note: Use lower-case and singular words for the name of each fruit, like "apple. In [54]: |Our solution uses 1 statement split over 3 lines. fruits table()-with-columns( fruit name, make_array'apple, 'orange,"pineapple) count' make_array(4,3,3)) = fruits File "", line4 count', make_array (4,3,3)) SyntaxError: invalid syntaxExplanation / Answer
Hi,
I think you just missed a comma in your code. Rest all seems to be syntactically correct.
Please try using below code. It should work for you.
fruits=table().with_columns('fruit name',make_array('apple','orange','pineapple'),
'count',make_array(4,3,3))
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.