In this lab, you will print the user's "fortune".
Create a python program named fortune.py. In the program:
create a list (array) called fortuneList containing the following elements: "You will have great luck!" "You will have bad luck" "You will have average luck" select a random integer from 0 to the length of the fortuneList (see previous code samples that chose a random integer) print the fortune from the fortuneList with the subscript matching the randomly-selected integer
Submit the complete fortune.py file.
Aucun commentaire:
Enregistrer un commentaire