Sorry to bother you lads, I am new to programming so i am not sure why i got this error. Anyone keen to point out what went wrong? Thank you!
In this problem set, i am trying to calculate the sum of the digits of 3^99
an_int = 3**99 a_string = str(an_int) a_list = list(a_string) total = 0 list_no = len(a_list)) for i in range(list_no): total = total + int(list_no[i]) print(total)