AI could learn to understand how to correct universally behave in digital world and make actions
def ai_action(environment): # if environment == 'dog': # return 'bark' # if environment == 'cat': # return 'meow' # if environment == 'horse': # return 'neigh' # if environment == 'duck': # return 'quack' # if environment == 'dog' or environment == 'cat' or environment == 'horse' or environment == 'duck': # return 'animal' # else: # return 'not an animal' if environment == 'dog' or environment == 'cat' or environment == 'horse' or environment == 'duck': return 'animal' elif environment == 'car': return 'drive' elif environment == 'train': return 'ride' elif environment == 'bike': return 'ride' else: return 'not an animal' ai_action('cat') ai_action('dog') ai_action('horse') ai_action('