Computer Science, asked by singhchauhanabhay56, 5 months ago

Define a function in python validate(name,mobile) that returns if
• ‘name’ contains only alphabets and spaces
• mobile contains only 10 digits
and returns false in other cases.
Also call this function in the same program and show its use.

e.g. Validate(“abc1”,”9818247899” ) should return False
validate(“Trisha Singh”,”8822332837”) should return True

Answers

Answered by aayushp2016
0

Answer:

jwthat returns if

• ‘name’ contains only alphabets and spaces

• mobile contains only 10 digits

and returns false in other cases.

Also call this function in the same program and show its use.

e.g. Validate(“abc1”,”9818247899

Answered by chaharanshika
1

Answer:

I hope it is helpful to you bro

Explanation:

Please follow me

Attachments:
Similar questions