File size: 133 Bytes
1485f4c
 
 
 
 
 
 
1
2
3
4
5
6
7
8
import random

def predict_next_word(words):
    if random.random() < 0.5:
        return "banana"
    else:
        return "potato"