There are multiple relatively easy ways to achieve this.
Start by adding a circle.
Use the menu on the bottom left to set the vertex count (8 is fine, we can subdivide later) and the radius.
tab to switch to edit mode. make sure you select all vertices, and extrude them upwards.
position the 3d cursor at the center of the desired radius. you can either
rmb or position it via the n-panel on the left.
space and type in "spin".
with this, we extrude and rotate the selected vertices with the 3d cursor as center of rotation. In this step you can also adjust the segments. (you have to adjust my settings to suit your setup and angle of rotation.)
Just repeat the steps extruding and spinning in the other direction and you're done.
Use "shade smooth" and subdivision modifier to get smoother results.
Add a bezier curve. Use
eto extrude new segments and
r to rotate them to get a shape you like.
Use the properties panel to bevel the curves and adjust the resolution.