Repo_fuer_mEIM_Semester7/Python-Blockkurs/AB1_Aufg2.py

10 lines
191 B
Python
Raw Normal View History

2018-10-06 08:12:01 +00:00
def x_hoch_y(x, y):
return x**y
#alternativ: return pow(x,y)
print("13 hoch 7 ist: ", x_hoch_y(13,7))
print("2 hoch 9 ist: ", x_hoch_y(2,9))
print("4 hoch 2 ist: ", x_hoch_y(4,2))