diff --git a/iteration.Rmd b/iteration.Rmd index 5ce4ed0..4ee0199 100644 --- a/iteration.Rmd +++ b/iteration.Rmd @@ -327,7 +327,7 @@ Here's how we could use a while loop to find how many tries it takes to get thre ```{r} flip <- function() sample(c("T", "H"), 1) -flips <- 1 +flips <- 0 nheads <- 0 while (nheads < 3) {