Start out with a detailed description of a problem to be solved. "...trying to write the code for a hold button on a fruit machine..." is not very detailed and tells very little.

Once you have...