Python : TypeError: can't multiply sequence by non-int of type 'float'
I am a newbie programmer trying to make an IRC bot that parse XML and paste its content on a channel. Usually, I find my answer on google, but this time I can't find my answer.
q0tag = dom.getElementsByTagName('hit')[0].toxml()
q0 = q0tag.replace('
q1 = (q0 * 1.2)
when I'm trying to multiply q0 it always showing
TypeError: can't multiply sequence by non-int of type 'float'.
I'm trying to make q0 int or float but it just makes another error
AttributeError: 'NoneType' object has no attribute 'replace'
q0 value is a round number without a decimal.