pow()

累乗された結果を返します

構文

pow(base,exponent)

構文規則について詳しく知る。

パラメーター

名前 必須 説明
base int、real、または long ✔️ 基本値。
exponent int、real、または long ✔️ 指数値。

戻り値

ベースに指数に累乗した値を返します:ベース ^ 指数

print result=pow(2, 3)

出力

結果
8