Which principle is being violated?

I am not good at naming, I good at feeling.

Suppose we have this hypothetical function:

function computePowerAndPrintResult(int x){
  print(x*x);
}

It screams already in the naming of the function ("And") that something wrong here and personally I never write code like this.
Which principle is being violated here? Is it the single-responsibility principle?

Source: Python Questions

LEAVE A COMMENT