Feb-03-2018, 01:25 PM
your syntax error is the result of line 9 and 1 missing a closing parenthesis.
Also this is very non-pythonic code. Let alone not even runnable because some of it is not even valid python code. To be honest it looks like you never read a python tutorial ....like you just wrote C code with some python keywords and its indentation.
++ is not an operator in python and for good reason. You dont need to increment like you do in C/c++ so much. You loop over sequences element by element.
There is no type declarations in python so im not sure what this is suppose to be?
Use the format method for inserting variables into a string
Single char names are bad variables in any language. And capped names are meant for class names.
Also this is very non-pythonic code. Let alone not even runnable because some of it is not even valid python code. To be honest it looks like you never read a python tutorial ....like you just wrote C code with some python keywords and its indentation.
++ is not an operator in python and for good reason. You dont need to increment like you do in C/c++ so much. You loop over sequences element by element.
There is no type declarations in python so im not sure what this is suppose to be?
Quote:A[i]=int input
Use the format method for inserting variables into a string
Single char names are bad variables in any language. And capped names are meant for class names.
Recommended Tutorials: