Strings are always printed with quotes. Unless you use "format" to print them to the listener. Number "9" is printed without quotes since it's an integer. print 9print (9 as string) will be printed as 9"9" I haven't looked into your code, because I don't have much time. But my guess is you are using a string when you…