Flask Web App with Python (beginners tutorial) - Python ...
The first thing you see is we have defined an array of multiples quotes. These can be accessed as quote, quote, quote and so on. The function randint() returns a random number between 0 and the total number of quotes, one is subtracted because we start counting from zero. Finally we set the quote variable to the quote the computer has chosen.
DA: 93 PA: 1 MOZ Rank: 74