We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

BiancaV • 1 year ago

I canĀ“t understand the activity, so I agree BionicToothpick I need more explanation to complete the exercise

BionicToothpick • 2 years ago

I don't feel like I skipped anything, but I need more intro to: Complete the getNearestEnemy method using a ternary operator
dist_1 < dist_2? print(enemy_1): print(enemy_2) says success, but so does dist_1 < dist_2? print(enemy_2): print(enemy_1)

codebliss1412 • 2 years ago

since it is just for learning puposes, it doesn't matter wether enemy1 or enemy2 win