[Solved] How to add numbers inside a variable? [closed] January 11, 2023 by Kirat try: sum(int(y) for y in var.split()) >> 20 1 solved How to add numbers inside a variable? [closed]