Skip to content

Instantly share code, notes, and snippets.

@usdtorero
usdtorero / Battleship Game
Created April 19, 2014 16:20
Battleship Game
#codecademy battleship game created 04/19/2014 python track
from random import randint
board = []
for x in range(5):
board.append(["O"] * 5)
def print_board(board):
pyg = 'ay'
original = raw_input('Enter a word:')
if len(original) > 0 and original.isalpha():
word = original.lower()
first = word[0]
new_word = word[1:] + first + pyg
s = new_word
print s