Mr. Lendem is studying the genetics of odor in Guavas (Psidium guajava).He knows that the D gene, controlling odor, follows Mendelian inheritance so that DD Guavas have a strong typical smell, Dd plants have weaker smell and dd plants don't smell at all.
Write a program that, given a number of Guava plants examined, will calculate and print the expected numbers of smelly, less smelly and non-smelly plants (according to the Mendelian 1:2:1 inheritance law).
plants_num = 1600 # Replace with a value of your choice.
smelly =
less_smelly =
non_smelly =
print('Smelly:',smelly)
print('Less smelly:',less_smelly)
print('Non Smelly:',non_smelly)
Each individual has either blood type 'A', 'B', 'AB' or 'O'.
Blood donations may be received from individuals with the same blood type, although 'AB' may receive all types and 'O' may donate to all types.
Write a program that, given the blood types of two patients, prints whether the recepient may receive a blood donation from the donor. The program should print 'True' if a donation is possible, 'False' if it isn't, and 'Invalid input' if one of the blood types is not 'A', 'B', 'AB' or 'O' (only accept uppercase letters.
recepient_blood_type = 'A' # Replace with a value of your choice.
donor_blood_type = 'O' # Replace with a value of your choice.
# Your code goes here
In Dr. Dre's lab, there are X students, each uses Y Petri dishes a month, on average. At the begining of each month, the lab manager has to decide if he/she should order more dishes. Given the number of students (X), the average number of dishes they use per month (Y) and the number of dishes in stock (N), write a program that will make the decision, using the following rules:
Print the total number of dishes that should be ordered.
students = 1 # Replace with a value of your choice.
dishes_per_student = 1 # Replace with a value of your choice.
dishes_in_stock = 1 # Replace with a value of your choice.
# your code here
print('Order',dishes_to_order,'dishes')