Börjat lägga till kodexempel

This commit is contained in:
2024-02-03 16:32:45 +01:00
commit dcd905737e
30 changed files with 229 additions and 0 deletions

7
kapitel7/input-ex2.py Normal file
View File

@@ -0,0 +1,7 @@
x = input("Ange basen: ")
y = input("Ange exponenten: ")
x = float(x)
y = float(y)
s = x**y
print(str(x) + " upphöjt till " + str(y) + " blir " + str(s))