Your Python IDE set-up (Anaconda and Jupyter Notebooks)
In today's data lab, you will merge these concepts and solve the following use-cases using Python.
Yesterday, you developed an algorithm to find the largest of 3 numbers a, b, c.
Kindly translate the psuedocode into python code and write a function that can print out the largest of 3 given numbers.
The following table indicates the vaccination schedule for people who are not in medically at-risk or high-risk groups, who live at home and can access the vaccination location on their own, and who do not work in healthcare
Year of Birth | Vaccine registration | Vaccine | Location |
---|---|---|---|
1931 or earlier | From 25 January 2021 | BioNTech | Groningen |
1932 - 1936 | From 29 January 2021 | Pfizer | Arnhem |
1937 - 1941 | From 5 February 2021 | Pfizer | Breda |
1942 - 1946 | From 6 March 2021 | Moderna | Harlingen |
1947 - 1951 | From 6 April 2021 | Moderna | Edam |
1952 - 1955 | From 15 April 2021 | AstraZeneca | Amsterdam |
1956 - 1957 | From 15 February 2021 | AstraZeneca | Sittard |
1958 - 1960 | From 15 April 2021 | Moderna | Rotterdam |
1961 - 1971 | From 27 April 2021 | Janssen | Groningen |
1972 - 1981 | From early June 2021 | Janssen | Arnhem |
1982 - 1991 | From mid-June 2021 | Moderna | Breda |
1992 or later | From mid-June 2021 | BioNTech | Maastricht |
Using Jupyter notebooks, write a Python function which prints out the vaccine registration date, vaccine and location for a user supplied year of birth.
Assume that Year of Birth will be provided in the exact format as in the table.
hint: use the string equals to (==) operator.
Using Jupyter notebooks, write a Python function which implements the logic presented in the flowchart.
Hint: Use the input() command to request the user to provide an input. Further, use your powers of abstraction to translate the information into simple Yes/no questions.