swing (verb)

Meaning 1
a stroke or blow with one or both arms, with or without an object, in a large arc. In many sports the player uses equipment, such as a bat, golf club, racquet, to hit a ball. He swings at the ball.
Sentence 1
In golf, keep your head down as you swing at the ball.
Meaning 2
to do something, to make something happen
Sentence 2
It will be a hard job, but I'll take a swing at it.