MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / main

Function main

src/gamesbyexample/diamonds.py:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12Tags: tiny, beginner, artistic"""
13__version__ = 0
14def main():
15 print('Diamonds, by Al Sweigart al@inventwithpython.com')
16
17 # Display diamonds of sizes 0 through 6:
18 for diamondSize in range(0, 6):
19 displayOutlineDiamond(diamondSize)
20 print() # Print a newline.
21 displayFilledDiamond(diamondSize)
22 print() # Print a newline.
23
24
25def displayOutlineDiamond(size):

Callers 1

diamonds.pyFile · 0.70

Calls 2

displayOutlineDiamondFunction · 0.70
displayFilledDiamondFunction · 0.70

Tested by

no test coverage detected