ICE_3 - slcc2c/CS5590_Python GitHub Wiki

This ICE had 2 tasks to complete: 1.Draw a Game board

Ask the user what size game board they want to draw, and draw it for them to the screen using Python’s print statement. Hint: use functions.

def print_horiz_line():

#code snippet here

def print_vert_line():

#code snippet here 2. Write a program that takes a list of numbers (for example, a = [5, 10, 15, 20, 25]) and makes a new list of only the first and last elements of the given list. For practice, write this code inside a function.

The tasks were all implemented as functions in the python file found here