Login
📚 Python for Introductory Statistics: Lab Workbook
Chapters ▾

1.3 Python Variables

Watch demo video

Lab 1.3.1

Given the ordered pairs (6,9) and (5,1), write a Python code to find the slope and midpoint.

view answer

Lab 1.3.2

To solve a quadratic equation of the form ax2+bx+c=0, we can use the formula below:

x=bb24ac2a or x=b+b24ac2a

Write a Python code to solve 2x23x4 using the quadratic formula.

view answer

Lab 1.3.3

Evaluate 1+218 and round the result to one decimal place.

view answer

Adapted from Python for Introductory Statistics: Student's Lab Workbook, by Simon Aman (Truman College, City Colleges of Chicago), licensed under CC BY 4.0. Changes were made: reformatted as an accessible XYZ web edition with live in-browser code cells. License: CC-BY-4.0.