mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
Adjust Python code to follow PEP8
This commit is contained in:
parent
b36776fc27
commit
de1ad26035
14 changed files with 349 additions and 311 deletions
|
@ -1,7 +1,7 @@
|
|||
def giveCoordinates(n):
|
||||
for y in range(0,n):
|
||||
for x in range(y,2*n-y,2):
|
||||
print(x,y)
|
||||
def give_coordinates(n):
|
||||
for y in range(0, n):
|
||||
for x in range(y, 2*n-y, 2):
|
||||
print(x, y)
|
||||
print("")
|
||||
|
||||
giveCoordinates(5)
|
||||
give_coordinates(5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue