Thanks I've used the syntax highlighter for python and keep getting syntax errors on line 4. It's a pretty long directory name and file name but I've used the syntax call from the help guide which is repeated below.
import arcpy
from arcpy import env
from arcpy.sa import *
env.workspace = "input file directory and filename" Contour("elevation", "D:\test\contour.shp", 5, 0)
I've also tried copying the code from the background process syntax and getting the same error.
import arcpy
from arcpy import env
from arcpy.sa import *
Contour "input file directory and filename" "D:\test\contour.shp" 5 0 1
Can anyone please tell me if there is a glaring issue in the code?