Question: Build a phone book program in python, that recevies the phone number and return the name of the owner. You can follow the table below:
Build a phone book program in python, that recevies the phone number and return the name of the owner. You can follow the table below:
| Name | number |
| Amal | 1111111111 |
| Kadijah | 2222222222 |
| Rawan | 3333333333 |
| Layla | 4444444444 |
| Mohammed | 5555555555 |
| Abdullah | 6666666666 |
| Faisal | 7777777777 |
if the number exists print the owner otherwise print Sorry
if the number less than or more than 10 number,printthis is invalid num
if the number contains letters or sympol printthis is invalid num
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
