1
0
mirror of https://github.com/satwikkansal/wtfpython synced 2024-11-22 11:04:25 +01:00

Add .py file of mixed indentation example.

This commit is contained in:
Satwik Kansal 2017-08-30 03:18:31 +05:30
parent 585f02fe39
commit 51d14f7a25

View File

@ -1,6 +1,7 @@
def square(x): def square(x):
runningtotal = 0 sum_so_far = 0
for counter in range(x): for counter in range(x):
runningtotal = runningtotal + x sum_so_far = sum_so_far + x
return runningtotal return sum_so_far
print(square(10)) print(square(10))