seq() function creates a sequence of whole numbers. The first three of its parameters are:
fromdefines the start of the sequence
todefines the end of the sequence
bysets the steps between the single values
seq() function and create a sequence of numbers from 2 to 10 but only include every second value. Thus, the output should be:
Submit code to see output here.