Skip to content

Commit

Permalink
updating variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimfe committed Jun 1, 2023
1 parent c357640 commit a5d12ba
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions kodenesia/penjumlahan_yang_dibatalkan.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@


def false_sum(string):
text = string.split()
total, temp = 0, 0
for kaka in text:
if kaka != "B":
temp = int(kaka)
for x in string.split():
if x != "B":
temp = int(x)
total += temp
if kaka == "B":
else:
total -= temp
return total

Expand Down

0 comments on commit a5d12ba

Please sign in to comment.