Question: python 1. Names and Ages (10 points) a. Create a file called YOUR_NAME_NamesAges.py i. Define a variable string_one at the top of the file copying

python
1. Names and Ages (10 points) a. Create a file called "YOUR_NAME_NamesAges.py" i. Define a variable "string_one" at the top of the file copying the string from the screenshot below. string_one =11 Jane is 30, her mom Beth is 58 and her dad Jim is 61; while her siblings Joe and Mark are 28 and 32 respectively 11 ii. Using regular expressions get the names and ages from string_one. iii. Create a dictionary with names as the keys and ages as the values. The names should be strings and the ages should be integers. iv. Display the dictionary. 1. Names and Ages (10 points) a. Create a file called "YOUR_NAME_NamesAges.py" i. Define a variable "string_one" at the top of the file copying the string from the screenshot below. string_one =11 Jane is 30, her mom Beth is 58 and her dad Jim is 61; while her siblings Joe and Mark are 28 and 32 respectively 11 ii. Using regular expressions get the names and ages from string_one. iii. Create a dictionary with names as the keys and ages as the values. The names should be strings and the ages should be integers. iv. Display the dictionary
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
