in python
Ask the user to type in a grocery list. Ensure that each item inthe grocery list is separated by a comma. Usethe split command to extract each token(item) in the grocery list. Print the last item in the list.
For example, if the user enters"milk,bananas,sugar,eggs,cheese", you will need to read this into avariable, parse the contents usingthe split command and print "cheese"
in python Ask the user to type in a grocery list. Ensure that each item in the grocery list is separated by a comma. Use
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am