Create your curve. Create its profile (create a circle curve, duplicate it in *Edit* mode). Select the curve, in the *Properties panel > Object Data > Geometry > Bevel*, click on *Object* and choose the 3 circle curve as *Object*:

[![enter image description here][1]][1]


  [1]: https://i.sstatic.net/W3xmo.jpg