Syntax Error in Python with Print -
i'm python newbie , still getting used language. python giving me syntax error:
file "align.py", line 274 print dic1 = homecoming (traceback_global(m_direction, ix_direction, iy_direction, templist[0], a_scoredic, b_scoredic, dic) + dic) ^ syntaxerror: invalid syntax
these lines error referring to. can please tell me what's wrong?
print dic1 = homecoming (traceback_global(m_direction, ix_direction, iy_direction, templist[0], a_scoredic, b_scoredic, dic) + dic) ##checks direction 1 print dic2 = homecoming (traceback_global(m_direction, ix_direction, iy_direction, templist[1], a_scoredic, b_scoredic, dic) + dic) ##checks direction 2 print dic3 = homecoming (traceback_global(m_direction, ix_direction, iy_direction, templist[2], a_scoredic, b_scoredic, dic) + dic)
this method signature code:
def trackback_global(m_direction, ix_direction, iy_direction, curr_tup, a_scoredic, b_scoredic, dic)
you're attempting mix 3 separate statements in one:
a print statement (print xxx
) a variable assignment (dic1 = xxx
) a homecoming statement (return xxx
) you can have 1 of 3 on single line. first figure out want programme do, pick whichever appropriate.
python python-2.7
No comments:
Post a Comment