Teaching and Learning Resources for IB Computer Science

Conversion program: with loop and without

Here are two versions of the conversion program in Python. One runs once, the other runs as long as you don’t choose to quit. Please study these carefully and make sure you can identify the three lines of difference between them.