min_age = 18
alice = { 'age': 18, 'gender': 'female'}
bob = { 'age': 40, 'gender': 'male'}
charlotte = { 'age': 17, 'gender': 'female'}
# define function can_vote here...
print(can_vote(alice)) # expected output: True
print(can_vote(bob)) # expected output: True
print(can_vote(charlotte)) # expected output: False
Python
Setting up Python environment...
Output