Here is a basic guide on good and bad coding practices. These are not to be taken as absolute law, but the general ideas presented are a guideline for what is acceptable and what is not.
Remember, writing clear, logical code isn't just helpful for the graders. It also makes going back to your own code in the future much easier.