From 51d14f7a25574f902600cfd424c75c13f0fcd700 Mon Sep 17 00:00:00 2001 From: Satwik Kansal Date: Wed, 30 Aug 2017 03:18:31 +0530 Subject: [PATCH] Add .py file of mixed indentation example. --- mixed_tabs_and_spaces.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mixed_tabs_and_spaces.py b/mixed_tabs_and_spaces.py index a6232f1..23a5329 100755 --- a/mixed_tabs_and_spaces.py +++ b/mixed_tabs_and_spaces.py @@ -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)) \ No newline at end of file + sum_so_far = sum_so_far + x + return sum_so_far + +print(square(10))