mirror of
https://github.com/satwikkansal/wtfpython
synced 2025-07-04 20:38:06 +02:00
Add more examples and correct description of existing ones
This commit is contained in:
parent
57386e5a1b
commit
585f02fe39
2 changed files with 129 additions and 4 deletions
6
mixed_tabs_and_spaces.py
Executable file
6
mixed_tabs_and_spaces.py
Executable file
|
@ -0,0 +1,6 @@
|
|||
def square(x):
|
||||
runningtotal = 0
|
||||
for counter in range(x):
|
||||
runningtotal = runningtotal + x
|
||||
return runningtotal
|
||||
print(square(10))
|
Loading…
Add table
Add a link
Reference in a new issue