Skip to content
Profile icon

symbol = ["+","-","/","*"]

if level == 1:
levelonea = random.randint(0,10)
leveloneb = random.randint(0,10)
answerone = int(input(levelonea, symbol(0,3), leveloneb))
How do i make python chose a random symbole from the above array?

You are viewing a single comment. View All
Profile icon

choose a random item from an array using the following:

import random random_item = random.choice(symbol)

Please upvote if this helps :)