Battleship!

 

 

 

 

 

 

 

Today in the lab we learn about the lists and functions in this topic it include that how to remove elements from lists by using the n.pop(index) to exclude a item for the list. We also can append a item to a list by using  .append() this is the opposite site  way to remove the thing from the list. And after we finish the exercise from the Lists and Functions we continue to the next exercise it is called Battleship! We using the technique we learn from the previous lessons and apply to the real situation to make our own simple game. We use the loop the let the code work functionally When you want to end a function right away ,you write down break on the next line. And after all I test my code it works correctly.
8RW}FDL3Z7X1EV6QD6YX42G

T6XYQ9PVLWSSXJ`4~57}AUM
wq2 wq3

Comments are closed.