Question: Q 5 . Write a python program to check given person is lucky or not. The person is said to lucky if both the sum

Q5. Write a python program to check given person is lucky or not. The person is said to lucky if both the sum of the digits in date of birth and sum of ascii value of all the alphabets in his
(10M)
name are odd number. Get the person's name and his DOB at run time and find the given person is lucky or not.
Sample input:
Enter the person's name : RAJA
Enter the person's DOB : 12/01/1991
Sample output:
Sum of digits in DOB is 24 and sum of ascii value of all the alphabets in name is 286 The person is not lucky person.
Note: if dob is 1201?1991, then process is (1+2+0+1+1+9+9+1)=24(even number)
 Q5. Write a python program to check given person is lucky

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!