I'm trying to edit the value of bigalgs, but when I actually print the value of it, it just spits the initial value of bigalgs, which is 0. Why is this happening? Am I increasing the value of bigalgs the wrong way? I think it was by simply using the + sign... Maybe the for loop? Help!
(for reference, alg here means algorism)
class scinoteConvert:
def __init__(self, num):
alglog = []
alglist = []
bigalgs = 0
num = str(num)
for alg in num:
alglist.append(alg)
for alg in alglist:
if int(alg) < 1:
alglog.append(True)
else:
alglog.append(False)
print(bigalgs)
bigalgs + 1
print(alglist, alglog, bigalgs)
input = int(input('Insert num: '))
if input < 1:
exit('Error! Cannot calculate negative values!')
scinoteConvert(input)