This is my code. When I am running the code it says syntax error = invalid syntax, it sees "&" symbol as a invalid syntax.
enter code here
# -*- coding:utf-8 -*-
import RPi.GPIO as GPIO
import time
import os
buttonPin = 17
GPIO.setmode(GPIO.BCM)
GPIO.setup(buttonPin,GPIO.IN)
while True:
if (GPIO.input(buttonPin)):
os.system("fswebcam -r -d
/dev/video0/home/pi/webcam.jpg")
os.system("python /home/pi/mailgonder.py")