Python SyntaxError: invalid syntax end=”

If you faced this error, it seems you are using Python 2.x, not Python 3.x.

Check your python version:

In Python 3.x, it should not raise Syntax Error:

In Python 3.x print is an actual function, so it takes keyword arguments, too.

Use the below module to use it is Python 2.x

This allows you to use the Python 3.0 style print function without having to hand-edit all occurrences of print :)

NOTE:  end is a newline by default, end='' makes print() function do not print additional newline


Burning an ISO from the command line

The cdrecord command is used to burn an ISO file into a CD-ROM or DVD-ROM. It can be
used to burn the image to the CD-ROM as follows:
# cdrecord -v dev=/dev/cdrom image.iso
Some extra options are as follows:

We can specify the burning speed with the -speed option as follows:
-speed SPEED
For example:
# cdrecord -v dev=/dev/cdrom image.iso -speed 8
Here, 8 is the speed specified as 8x.

A CD-ROM can be burned in multisessions such that we can burn data multiple
times on a disk. Multisession burning can be performed using the -multi option
as follows:
# cdrecord -v dev=/dev/cdrom image.iso -multi