mirror of
https://github.com/satwikkansal/wtfpython
synced 2024-12-22 21:00:09 +01:00
Add .py file of mixed indentation example.
This commit is contained in:
parent
585f02fe39
commit
51d14f7a25
@ -1,6 +1,7 @@
|
||||
def square(x):
|
||||
runningtotal = 0
|
||||
sum_so_far = 0
|
||||
for counter in range(x):
|
||||
runningtotal = runningtotal + x
|
||||
return runningtotal
|
||||
print(square(10))
|
||||
sum_so_far = sum_so_far + x
|
||||
return sum_so_far
|
||||
|
||||
print(square(10))
|
||||
|
Loading…
x
Reference in New Issue
Block a user