use .is_integer() to determine perfect square
use .is_integer() to determine perfect square