I'm currently taking the course: Introduction to R on DataCamp and in one exercise (Battle of the sexes) there is an instruction like this:
Read the code in the editor and click 'Submit Answer' to test if
male
is greater than (>
)female
The above instruction inspired me to test the following code in RStudio:
'Male' > 'Female'
To my surprise, R gave me the output TRUE
! I also tried in Excel and VBA, and both came up with outputs TRUE
, too! Now, I begin to think that they're programming languages with sexist views (Just kidding, hehe...).
So I wonder, what really happened here? Could anyone here explain it to me? Does this hold TRUE
, too, for other programming languages? Why?