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
Q 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
M
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 :
Sample output:
Sum of digits in DOB is and sum of ascii value of all the alphabets in name is The person is not lucky person.
Note: if dob is then process is even number
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
