Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 validjawal 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 or plus digits numbers for example, chars or chars
In local format Jawal mobile numbers starts with plus digitsnumbers for example, 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 L
Use the function validjawal to check all numbers and add all valid Jawal numbers to a new list and add all invalid numbers to a List
Print and using the format as in the following example.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started