Python Advanced Pre-Course Questionnaire
The Python Advanced course, the data analysis with Python course, and the machine learning with Python course, assume that attendees have mastered the content covered in the foundation and intermediate courses. Here are a few questions. You should only join the advanced course if you feel comfortable that you can answer these questions, or at least have a good understanding of them. You may be asked to answer these at the start of the course.
- Write a Python function to calculate the body mass index of a person given their weight and height.
- Write a Python function that given a temperature reading (a number between 0 and 30), returns “cool” if under 15, “warm” if 15 or over but under 25 and “hot” if 25 or over.
- Write a list comprehension that extracts the systolic numbers from a list representing blood pressure readings as strings. For example, given a list such as [“120/80”, “130/85”, “140/90”] this should return [120, 130, 140].
- give some examples of popular Python packages and explain what they are used for.
- install a module using pip.