- brackets don’t match!
if check_pattern1(a, b, c):
print("Sure! It is ", roman.intToRoman(int(c))
else:
print("I don't get what you want, sorry mate!")
The result:
File "/Users/danzhao/PycharmProjects/9021/test.py", line 41
else:
^
SyntaxError: invalid syntax
Process finished with exit code 1
Solusion:
The right coding should be:
add a “)” at the end of the 2nd row
if check_pattern1(a, b, c):
print("Sure! It is ", roman.intToRoman(int(c)))
else:
print("I don't get what you want, sorry mate!")