Consider the list presented below with 5 lines from different data from library cards
Python "Consider the list presented below with 5 lines from different data from library cards:\n",
"```\n",
"['812345674848138 01/20/2024 Emma A. Patron 06/20/1980 F',\n", "'812543435675419 05/17/2027 Karl P. Johnson 03/13/1992 M',\n", "'812345674848138 04/23/2025 Rachel M. Green 07/05/1975 F',\n", "'812345674848138 11/19/2024 Michael L. Smith 12/25/1954 M',\n", "'812543435675419 12/31/2024 Julia T. Roberts 09/17/1974 F']\n", "```\n",
"The data in each string has: library number, expiration date, name, date of birth and gender. Write a program that reads the strings from the list and output:\n", "- Number of males and females.\n", "- How many libraries are in the data.\n", "- The name of each person in the data.\n", "\n" ]
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images