Question: Write a Python function valid _ jawal to validate whether a string entered by the user is a valid Palestinian Jawal mobile number: In international

Write a Python function valid_jawal to validate whether a string entered by the user is a valid Palestinian Jawal mobile number:
In international format the valid Palestinian Jawal mobile number starts with 0097059 or +97059 plus 7 digits (numbers) for example, 00970591231111(14 chars) or +970592224545(13chars)
In local format Jawal mobile numbers starts with 059 plus 7 digits(numbers) for example, 0591234562(10 chars)
The function will return True for valid Jawal mobile number and False otherwise.
Then ask the user to enter a list of Jawal numbers from the keyboard in one line and save it in a list L1.
Use the function valid_jawal to check all L1 numbers and add all valid Jawal numbers to a new list L2 and add all invalid numbers to a List L3
Print L2 and L3 using the format as in the following example.
 Write a Python function valid_jawal to validate whether a string entered

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!