linux - SyntaxError: invalid syntax Python 2.7 -


i newish programmer , can't seem figure 1 out. getting error on bit of code put in. note on linux (raspberry pi exact).

    direct = raw_input("\nplease give the directory or song ending file type \nex. /folder1/favoritesong.wav"         #ftype - file type         #ftype 1 - wav file         #ftype 2 - mp3 file         ftype11 = ".wav" in direct         ftype12 = ".wav" in direct         ftype21 = ".mp3" in direct         ftype22 = ".mp3" in direct         if ftype11 or ftype12 == true:             if ftype11 == true:                 os.system("clear")                 print "does song sound fast, slow, or not playing @ all? check readme files."                 check1 = os.system("sudo ./pifm " + direct + " " + str(freq) + " 22050 stereo")                 print check1             elif ftype11 == false:                 if ftype12 == true:                     os.system("clear")                     print "does song sound fast, slow, or not playing @ all? check readme files."                     check1 = os.system("sudo ./pifm " + direct + " " + str(freq) + " 22050 stereo")                     print check1                 else:                     time.sleep(3.5)                     print "error 256"                     print error256                     time.sleep(2)                     quit()         elif ftype11 or ftype12 == false:             if ftype21 == true:                 print             elif ftype21 == false:                 if ftype22 == true:                     print                 else:                     time.sleep(3.5)                     print "error256"                     print error256                     time.sleep(2)                     quit() 

here entire code if need it, in advance.

https://docs.google.com/document/d/1pjk2mfakwjzpofvnxb7dwdrcmenwnu7y-oyokawcv_0/edit?usp=sharing

you're missing close parenthesis on first line.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -