Login
📚 Python for Introductory Statistics: Lab Workbook
Chapters ▾

3.1 if statements

Watch demo video

Lab 3.1.1

Write a code that checks if the quadratic equation x2+3x+4=0 has one, two or no real solutions.

view answer

Lab 3.1.2

Write a code that checks if the quadratic equation 5x2+3x16=0 has one, two or no real solutions.

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.