ValueError: unsupported format character ']' (0x5d)
ValueError: unsupported format character ']' (0x5d) Question: I’m trying to make irc bot with python. The bot will parse XML and paste its content on channel. This is part of my code f = open("1.xml") data = f.read() f.close() domi = parseString(data) attackerbartag = domi.getElementsByTagName(‘bar’)[0].toxml() attackerbar = attackerbartag.replace(‘<bar>’,”).replace(‘</bar>’,”) attackerbar = round(float(attackerbar)2) defenderbar = 100 – …