File size: 258 Bytes
f7842f6
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8

async def generate_fill_in_the_blank_questions(context,answer):
    answerSize = len(answer)
    replacedBlanks = ""
    for i in range(answerSize):
        replacedBlanks += "_"
    blank_q = context.replace(answer,replacedBlanks)
    return blank_q