def merge(l1,l2):
i=0;
while((l1[i]!=none)||(l2[i]!=none)):
SyntaxError: invalid syntax
being a newbie i can’t figure out whats wrong with the abouve code.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Replace
||withor, makeNoneupper-case (and lose the semi-colon):(As you can see, the parentheses were also redundant.)
Furthermore,
!= Nonecan be changed tois not None:(Thanks to @SilentGhost for pointing that out.)