First time here? Check out the FAQ!
answered 7 years ago
You can use the norm method:
norm
sage: v = vector((3,4)) sage: v (3, 4) sage: v.norm() 5