I live in Western Europe and began a CS degree 1.5 years ago. I had no prior programming experiences but the degree was aimed for beginners.
The male-female student ratio was 100:1 (as also stated by the official statistics). I was expecting this but I didn't let myself feel discouraged. However, whenever we had obligatory pair or groups projects, I had to deal with many difficult situations.
Sometimes my partner would code out my part of the task before we met in person to discuss the assignment, and then demand a "favor" back, others acted out aggressive and told me women expect guys to do everything for them. Another time another partner removed my name out of our projects despite me having done my part (+ writing all the comments and tests) so that I had to clear things up with my professor. And inumerous times they tried to turn our meetings for the assignments into dates and/or accused me of leading them on when I rejected their advances. I did have two or three classmates whom I trusted, but our professors demand we switch partners for every assignment.
The reason we have pair and group projects is because our professors know it's difficult to solve the assigments on our own (plus, a big part of software develpment is discussing and exchanging ideas and solutions).
I couldn't deal with the hostile environment so I dropped out despite my interest in programming. I come from a culture where gender is often segregated so I didn't really know how to deal with such advances/comments. Whenever I made my professors aware of the situation I was dismissed and told I just had to be more resilient and be more firm in my opinions.
My questions are: if I do end up retaking CS in a college environment again, how can I best avoid this? Should I go for a non-traditional route instead?