An string or character array containing 5 mobile numbers is provided.verify these 5 mobile numbers and identify vary as well as invalid numbers.any mobile number is less than or greater than 10 or any character is considered as invalid. Write a code which will generate report on count of total number of invalid mobile numbers .
Answers
Answered by
0
Explanation:
THIS IS YOUR ANS IN PYTHON CODE:
l = []
z = "1234567890"
count = 0
for i in range(2):
x = str(input("Enter 10 digit no"))
if len(z)!=len(x):
print("Number should be 10 digit")
break
else:
j = list(x)
l.append(j)
error = "@#$_&-()/*':;!?/%-" " "
for row in l:
for col in row:
for k in error:
if k in col:
count+=1
print("Count",count)
MARK ME AS BRAINLY
FOLLOW ME
Similar questions