Quizzma library

Programming

Browse Programming resources and answers on Quizzma.

Question

Why do we write functions

Why do we write functions? I. Make our code easier to understand by giving a readable name to a group of instructions II. Avoid writing repeated code III. Make our code reusable II and III I only I and II I, II, and III

Read more →
Question

Comparing two data sets using box plots.

The box plots shown represent two data sets. Use the box plots to compare the data sets. Drag each value to show if it is the same for both data sets, different for each data set, or if there is not enough information to tell. Median IQR…

Read more →
Question

Write a program to roll dice until snake eyes.

Write a program that rolls two dice until the user gets snake eyes. You should use a loop and a half to do this. Each round you should roll two dice (Hint: use the randint function!), and print out their values. If the values on both dice…

Read more →