Sep-27-2017, 03:39 PM
please give a runnable sample of your code with the full error text or a clear description of the problem
WHY AM I GETTING THIS ERROR
str(print("Items"\n\n, integer))
^
SyntaxError: unexpected character after line continuation character
WHY AM I GETTING THIS ERROR
def adding_report(report = "T"): while True: integer = input("Input an integer to add to the total or 'Q' to quit: ") total = 0 total = total + integer if integer.isdigit(): if report == "A": str(print("Items"\n\n, integer)) break elif report == "T": print(total) break elif integer.startswith().lower("Q"): break else: print("Input is invalid") return report adding_report("A")File "<ipython-input-1-93d20aaf6069>", line 10
str(print("Items"\n\n, integer))
^
SyntaxError: unexpected character after line continuation character