This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in range(1,101): | |
if i % 3==0 and i % 5 == 0: | |
print("CracklePop") | |
elif i % 3 == 0:0 | |
print ("Crackle") | |
elif i % 5 == 0: | |
print ("Pop") | |
else: | |
print(i) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fill_board(board): | |
for x in range(0, 5): | |
board.append(["O"] * 5) | |
def print_board(board): | |
for row in board: | |
print " ".join(row) | |
def random_row(board): | |
return randint(0, len(board) - 1) |