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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!