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

12
kapitel7/and-or-ex1.py Normal file
View File

@@ -0,0 +1,12 @@
x = 10
y = 15
if ((x > 5) and (y < 10)):
print("Jag kommer aldrig skrivas ut")
if ((x > 5) or (y < 10)):
print("Däremot kommer jag att skrivas ut")
if ((x == 10) and (y > 12)):
print("Jag kommer också att skrivas ut")