Getting z, x or y from a vector

Hey, how do I get z, x or y from a vector, or a angle.

Lets say I have a vector.
[lua]
Vector(12.2, 2.1, 3321.2)
[/lua]
I want the third number to be printed, how exactly can i do this?

Vector.z

Thanksss! :smiley: