For this script we used the random module and gained experience calling modules in Python. We called random integers to simulate a dice game. Also we created lists and used the append function in order to create a random number list between 0 and 10. Finally we used the For and While loops in addition to the remove function in order to remove all instances of a certain value from the list.
No comments:
Post a Comment