## Magic 8 Ball program, but this time using the list data structure

# import random module
import random

# Store all possible values in a list
messages = ['It is certain.',
            'It is decidedly so.',
            'Yes, definitely.',
            'Reply hazy, try again.',
            'Ask again later.',
            'Concentrate and ask again.',
            'My reply is no.',
            'Outlook not so good.',
            'Very doubtful...']

# Return random message from messages list
print(messages[random.randint(0, len(messages) - 1)])

f2875c58732104f9e61bd0cfd04896e385225c5d
<mask token>

<mask token>
print(messages[random.randint(0, len(messages) - 1)])

<mask token>
messages = ['It is certain.', 'It is decidedly so.', 'Yes, definitely.',
    'Reply hazy, try again.', 'Ask again later.',
    'Concentrate and ask again.', 'My reply is no.', 'Outlook not so good.',
    'Very doubtful...']
print(messages[random.randint(0, len(messages) - 1)])

import random
messages = ['It is certain.', 'It is decidedly so.', 'Yes, definitely.',
    'Reply hazy, try again.', 'Ask again later.',
    'Concentrate and ask again.', 'My reply is no.', 'Outlook not so good.',
    'Very doubtful...']
print(messages[random.randint(0, len(messages) - 1)])

## Magic 8 Ball program, but this time using the list data structure

# import random module
import random

# Store all possible values in a list
messages = ['It is certain.',
            'It is decidedly so.',
            'Yes, definitely.',
            'Reply hazy, try again.',
            'Ask again later.',
            'Concentrate and ask again.',
            'My reply is no.',
            'Outlook not so good.',
            'Very doubtful...']

# Return random message from messages list
print(messages[random.randint(0, len(messages) - 1)])
