EXERCISES
CLARIFYING THE CONCEPTS
- What are the five actions of Python and R code we discuss in this chapter?
- What are comments used for? What output is generated by a comment? What special character begins a comment?
- Why do we want to import packages?
- What is the use of the “as” code when importing Python packages?
- How do we save output generated by Python code?
- How do we save output generated by R code?
- Why would we want to save output?
- How do we get a data set into Python?
- Why is it important to specify if our data set has column headings or not?
- What are the two ways we can get a data set into R?
WORKING WITH THE DATA
For the following exercises, work with the bank_marketing_training data set. Use either Python or R to solve each problem.
- Download the program and open the compiler. What is contained in the bottom‐right window? The left (for Python) or top‐left (for R)?
- Type a comment stating that you are working on Chapter 2 exercises.
- Locate the ...