1>>> q0 = '3'
2>>> q1 = (q0 * 1.2)
3
4Traceback (most recent call last):
5 File "<stdin>", line 1, in <module>
6TypeError: can't multiply sequence by non-int of type 'float'
7
8# To fix this error you need to convert the string to a number first by using the below-mentioned way:
9
10>>> q1 = (float(q0) * 1.2)
11>>> q1
12
133.5999999999999996