Python-To-AQA-Pseudocode icon indicating copy to clipboard operation
Python-To-AQA-Pseudocode copied to clipboard

Update python-pseudocoder.py

Open ALoserIsMe opened this issue 7 years ago • 1 comments

Program now has an error message if the file it is looking for isn't found

ALoserIsMe avatar Oct 18 '18 08:10 ALoserIsMe

Please try running before you submit a pull request. This code will not run.

The while loop will never break as flag is never changed to True.

Also when checking for equivalence you need to use a double equals, to take this further there is actually no need to do a comparison, since you are checking for equivalence of two boolean values.

A while loop checks the Boolean logic after each loop, in your case you are doing flag == False this would resolve into True or False, there is no need to compare a boolean to another boolean you should just use the boolean value flag. In this case you would use:

while not flag:

This is equivalent to while flag == False: and much more readable.

RileyEv avatar Oct 18 '18 18:10 RileyEv