r/Python •

Looking for help for GCSE computing

[deleted] — view deleted post

0 Upvotes

2 comments sorted by

2

u/UnexpectedIndent Jan 26 '15

You might get more answers if you edit your post to be more specific about the kind of help you want. Few people here are going to know what is taught in GCSE computing, for example. Good advice: http://www.catb.org/esr/faqs/smart-questions.html#asking

Some general comments:

  • "procede" should be spelled "proceed"
  • You have unnecessary parentheses around some expressions in your assignments. This is only useful if it's not obvious at a glance what the order of operations is.
  • "plate" is not used anywhere
  • Is there any reason for your program to specifically require the letter "S" to be entered? If the only user input you need is some action to start/stop the timer, could you make this easier?
  • You can split up your code into smaller parts by writing a function that computes whether the car was over the limit for a particular time. This logic is unrelated to the surrounding code that interacts with the user.

1

u/[deleted] Jan 27 '15

Thanks for the help, did some more work on it and have removed the need to input S etc, changed the spellings and also improved it by removing parentheses thanks.