I am trying to create a program that specifies any type of person in response to a specific signal, It takes more than two rows and I fear it is not recognizing the string because it is on different lines it keeps popping up with a "false syntax" error and keeps pointing at the bottom line . Either way can I fix it?
given = raw_input ("what" + str (ans) + "is your number? The guess is very low to indicate. I have guessed that to be properly calculated Enter 'c'.)
to wrap a string in the Python source code , Or other brackets. Since your string is already in parentheses, I will use that fact. The interpreter automatically Connect the stars together, if they appear next to each other, then you can write your code like this:
given = raw_input ("is" + Enter "h" for estimation of str (ans) + "your number?" "", It's too much. "" To estimate, 'l' is too short to record. "" To correct this, 'Enter') It has been treated too much, though each of these strings was between + . You can also write plusses in the form, but this is not necessary. And as I have indicated above, you can give it three-quoted strings ( '' ' "" "). But in my opinion (in my opinion) your code looks horrible because indentation and newlines are being applied - I like sticking with many brackets.
No comments:
Post a Comment