PYTHON WHAT IS A FUNCTION

INTRODUCTION

WHAT IS A FUNCTION

INPUTS AND OUTPUTS

FUNCTIONS AND CONTROL FLOW

HOW TO USE FUNCTIONS

CONCLUSIONS

PYTHON HOW TO WRITE GOOD FUNCTIONS

INTRODUCTION

IT SHOULD DO JUST WHAT IT’S MEANT TO DO

HAVE A DEFINED PURPOSE

DESCRIPTIVE NAME

SIMPLE INTERFACE

COMMENTS AND DOCUMENTATION

CONCLUSIONS

PYTHON FUNCTIONS REAL DATA PRACTICE

INTRODUCTION

READ IN DATA

CHANGE TO FLOAT

WORKBOOK ANSWERS

CONCLUSIONS

DOWNLOAD DATA

Data is taken from http://vincentarelbundock.github.io/Rdatasets/datasets.html