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

Function displayRails

src/gamesbyexample/railfencecipher.py:57–62  ·  view source on GitHub ↗

Display the letters in the rails.

(rails)

Source from the content-addressed store, hash-verified

55
56
57def displayRails(rails):
58 """Display the letters in the rails."""
59 for y in range(len(rails[0])):
60 for x in range(len(rails)):
61 print(rails[x][y], end='')
62 print()
63
64
65def getRailCoordinates(message, key):

Callers 2

encryptMessageFunction · 0.85
decryptMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected