Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q.7 You are an organizer of a blood bank. People can donate blood any number of times at bank. Assign an ID number to donator
Q.7 You are an organizer of a blood bank. People can donate blood any number of times at bank. Assign an ID number to donator and count how many times he/she has donated blood. Some of them are repeating donator. You will award Gold, Silver, Bronze medals to 1st 2nd and 3rd most blood donator. Print their name with Id, name and award. Data should be in the form of user input. Q.8. Given a set of names: Some of them are Hindi readers Some of them are English readers Some are able to read Hindi and English both So you have to find: 1. The number of only English readers 2. The number of only Hindi readers 3. Print the set of both language readers 4. Print the set of names who are not able to read Hindi and English both set_of_names = {'hj', 'kv', 'on', 'fi', 'cg', 'kd', 'hs', 'jn', 'si', 'ds', 'oc', 'q', 'cy', 'og', 'y', 'gr', 'id', 'kl', 'oi', 'ob', 'tr', 'iv', 'af', 'kj', 'js', 'vi', 'gi', 'ai', 'ih', 'gy', 'hf', 'jh', 'of', 'aj', 'ru', 'fk', 'je', 'hv', 'oj', 'sc', 'he', 'b', 'le', 'os', 'wq', 'av', 'bv', 'oh', 'eo', 'wh', 'gu', 'ck', 'nc', 'we', 'qr', 'bf, 'nb', 'gi', 'vj', 'Id', 'un', 'io', 'hc', 'it', 'wb', 'sa', 'vk', 'sk', 'ou', 'ri', 'fe', 'cb', 'du', 'vg', 'vp', 'kh', 'c','ga', 'gc', 'ad', 'fy', 'fv', 'if', 'eg', 'od', 'ov', 'ir', 'vh', 'bd', 'vi', 'as', 'qi', 'jd', 'ha', 'au', 'gs', 'hi', 'gh', 'ij', 'vu', 'do', 'fa', 'uf', 'vs', 'IK', 'be', 'sv', 'ge', 'qe', 'fg','hd', 'fa', 'ka', 'ry', 'er', 'fs', 'fo', 'tg', tor', 'bk', 'jf, 'fi', 'jv', 'ew', 'dn', 'hy', 'hh', 'uh', 'pr', 'hu', 've', 'iu', 'po', 'bq', 'fh', 'gg', 'je', 'sf, 'if', 'sd', 'ie', 'ff", 'vd', 'db', 'wf, 'wc'} hindi_readers set = {'hj', 'ou', 'kv', 'do', 'fa', 'vs', 'lk', 'cb', 'hs', 'le', 'sv', 'ge', 'du', 'vg', 'wq', 'vp', 'kh', 'fg', 'ce', 'ga', 'cy', 'ge', 'og', 'wh', 'id', 'gi', 'ry', 'fs', 'bf, 'gu', 'tg', 'fy', 'ad', 'fo', 'fv', 'vj', 'or', 'bk', 'eg', 'tr', 'if', 'ir', 'dn', 'ew', 'jf,'hh', 'pr', 'vh', 'io', 'js', 've', 'vi', 'gi', 'po', 'jt', 'iu', 'bd', 'gg', 'ha', 'je', 'gy', 'sd', 'au', 'gs', 'fk', 'wf, 'we', 'ij'} english_readers_set = {'sk', 'hj', 'ri', 'vu', 'do', 'uf', 'sc', 'he', 'on', 'fi', 'kd', 'lk', 'cb', 'le', 'jn', 'si', 'vg', 'ge', 'os', 'oc', 'kh', 'cc', 'fd', 'bv', 'og', 'eo', 'wh', 'id', gu', 'fs', 'gi', 'ry', 'tg', 'fy', 'vj', 'ob', 'if, 'jf, 'or', 'gs', 'tr', 'ir', 'fj', 'dn', 'jv', 'bk', 'pr', 'uh', 'df, 'vh', 'kj', 'hc', 'js','gj', 'bq', 'jt', 'vi', 'ai', 'qi', 'jd', 'c', 'ha', 'sf', 'If, 'jh', 'aj', 'au', 'of', 'wb', 'vk', 'd', 'db', 'wf', 'gh"} Q.9. Append and remove some all names starting with h from set of names. Comment on the given task. Q.10. Take tuple_three defined at the top. Use a single loop and find the counts where two even numbers are neighbors. Print count and indexes of first and last occurring neighbor even numbers. Q.7 You are an organizer of a blood bank. People can donate blood any number of times at bank. Assign an ID number to donator and count how many times he/she has donated blood. Some of them are repeating donator. You will award Gold, Silver, Bronze medals to 1st 2nd and 3rd most blood donator. Print their name with Id, name and award. Data should be in the form of user input. Q.8. Given a set of names: Some of them are Hindi readers Some of them are English readers Some are able to read Hindi and English both So you have to find: 1. The number of only English readers 2. The number of only Hindi readers 3. Print the set of both language readers 4. Print the set of names who are not able to read Hindi and English both set_of_names = {'hj', 'kv', 'on', 'fi', 'cg', 'kd', 'hs', 'jn', 'si', 'ds', 'oc', 'q', 'cy', 'og', 'y', 'gr', 'id', 'kl', 'oi', 'ob', 'tr', 'iv', 'af', 'kj', 'js', 'vi', 'gi', 'ai', 'ih', 'gy', 'hf', 'jh', 'of', 'aj', 'ru', 'fk', 'je', 'hv', 'oj', 'sc', 'he', 'b', 'le', 'os', 'wq', 'av', 'bv', 'oh', 'eo', 'wh', 'gu', 'ck', 'nc', 'we', 'qr', 'bf, 'nb', 'gi', 'vj', 'Id', 'un', 'io', 'hc', 'it', 'wb', 'sa', 'vk', 'sk', 'ou', 'ri', 'fe', 'cb', 'du', 'vg', 'vp', 'kh', 'c','ga', 'gc', 'ad', 'fy', 'fv', 'if', 'eg', 'od', 'ov', 'ir', 'vh', 'bd', 'vi', 'as', 'qi', 'jd', 'ha', 'au', 'gs', 'hi', 'gh', 'ij', 'vu', 'do', 'fa', 'uf', 'vs', 'IK', 'be', 'sv', 'ge', 'qe', 'fg','hd', 'fa', 'ka', 'ry', 'er', 'fs', 'fo', 'tg', tor', 'bk', 'jf, 'fi', 'jv', 'ew', 'dn', 'hy', 'hh', 'uh', 'pr', 'hu', 've', 'iu', 'po', 'bq', 'fh', 'gg', 'je', 'sf, 'if', 'sd', 'ie', 'ff", 'vd', 'db', 'wf, 'wc'} hindi_readers set = {'hj', 'ou', 'kv', 'do', 'fa', 'vs', 'lk', 'cb', 'hs', 'le', 'sv', 'ge', 'du', 'vg', 'wq', 'vp', 'kh', 'fg', 'ce', 'ga', 'cy', 'ge', 'og', 'wh', 'id', 'gi', 'ry', 'fs', 'bf, 'gu', 'tg', 'fy', 'ad', 'fo', 'fv', 'vj', 'or', 'bk', 'eg', 'tr', 'if', 'ir', 'dn', 'ew', 'jf,'hh', 'pr', 'vh', 'io', 'js', 've', 'vi', 'gi', 'po', 'jt', 'iu', 'bd', 'gg', 'ha', 'je', 'gy', 'sd', 'au', 'gs', 'fk', 'wf, 'we', 'ij'} english_readers_set = {'sk', 'hj', 'ri', 'vu', 'do', 'uf', 'sc', 'he', 'on', 'fi', 'kd', 'lk', 'cb', 'le', 'jn', 'si', 'vg', 'ge', 'os', 'oc', 'kh', 'cc', 'fd', 'bv', 'og', 'eo', 'wh', 'id', gu', 'fs', 'gi', 'ry', 'tg', 'fy', 'vj', 'ob', 'if, 'jf, 'or', 'gs', 'tr', 'ir', 'fj', 'dn', 'jv', 'bk', 'pr', 'uh', 'df, 'vh', 'kj', 'hc', 'js','gj', 'bq', 'jt', 'vi', 'ai', 'qi', 'jd', 'c', 'ha', 'sf', 'If, 'jh', 'aj', 'au', 'of', 'wb', 'vk', 'd', 'db', 'wf', 'gh"} Q.9. Append and remove some all names starting with h from set of names. Comment on the given task. Q.10. Take tuple_three defined at the top. Use a single loop and find the counts where two even numbers are neighbors. Print count and indexes of first and last occurring neighbor even numbers
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started