Skip to Content
Foundational Python for Data Science
book

Foundational Python for Data Science

by Kennedy Behrman
September 2021
Beginner to intermediate
256 pages
6h 48m
English
Addison-Wesley Professional
Content preview from Foundational Python for Data Science

A

Answers to End-of-Chapter Questions

The answers to the questions at the end of each chapter are listed here.

Chapter 1

1.   Jupyter notebooks.

2.   Text and code.

3.   Use the Mount Drive button in the Files section of the left navigation.

4.   Python in Google Colab.

Chapter 2

1.   int

2.   They will execute as normal.

3.   raise LastParamError

4.   print("Hello")

5.   2**3

Chapter 3

1.   'a' in my_list

2.   my_string.count('b')

3.   my_list.append('a')

4.   Yes

5.   range(3, 14)

Chapter 4

1.   dict(name='Smuah', height=62)

Or

{'name':'Smuah', 'height':62}

Or

dict([['name','Smuah'],['height',62]])

2.   student['gpa'] = 4.0

3.   data.get('settings')

4.   A mutable object has data that can be changed; an ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Interpretable Machine Learning with Python

Interpretable Machine Learning with Python

Serg Masís
Data Science Bookcamp

Data Science Bookcamp

Leonard Apeltsin

Publisher Resources

ISBN: 9780136624417