---
author: izayak
title: "Ruotong's Chapter 5 Loops Exercise"
layout: post
---

<iframe src="https://trinket.io/embed/python/cb8bf3c733" width="100%" height="600" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Thoughts  
I just use the same 'count', 'total' and 'num' variable names in the two exercises. So if in the first one the user hits enter button
before inputing 'done', the nan of result of average will pass to the the next one. But if the user inputs done directly without hitting  
the enter button, that would be fine.

Create Ruotong's Ch5 Exercise Post
Create Ruotong's Ch5 Exercise Post