math.sqrt関数では、引数の平方根を取得することができます。
math.sqrt関数

sqrt関数を使用するには、先に組み込みモジュールのmathをimportする必要があります。
#python
import math
sq = math.sqrt(10)
print(sq)
mathモジュールをimportしたら、math.sqrtの引数に任意の数値や変数を指定することで、

その数値の平方根を取得することができます。

Python操作方法、関数・メソッドリファレンス
使用用途別にまとめたPythonリファレンスページです。
初期準備、基本概念
ダウンロード、インストール、起動
ShellとEditor、保存、実行
保存したPythonの起動
コメント、docstring、行またぎ
コメント、...
コメント