webartifex / intro-to-python

An intro to Python & programming for wanna-be data scientists
https://code.webartifex.biz/alexander/intro-to-python
MIT License
882 stars 87 forks source link

Grammar Error in Chapter 4: Recursion & Looping Exercise #16

Open yyouss1 opened 4 years ago

yyouss1 commented 4 years ago

Q3: Complete the for-loop below such that it runs 100000 times! In the body, use your answer to Q2 to simulate a single throw of the fair_die and update the corresponding count in throws!

Hints: You need to use the indexing operator [] and calculate an index in each iteration of the loop. Do do not actually need the target variable provided by the for-loop and may want to indicate that with an underscore _.

I believe you mean You do not