I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
Inspire me

You are to create a program which, when run, will give you an inspiring quote at random. You can get some ideas from –

http://www.inspirational-quotes.info/

In order to make the program you need to do the following.

  • Create a list to store at least 4 quotes. Call the list “quotes”
  • Pick a random number (using randint) and store it in a variable called “position”
  • Display the correct quote at position using quotes[position].

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Information