Lesson 1: Salary prediction

How could we test the tabular training code discussed in chapter 1 of the book?
Should we pass a list as follows to the predict function:
learn.predict([1,82,‘Private’,132870,‘HS-grad’,9,‘Widowed’])?