Initialer Import der Synology Scripts

This commit is contained in:
root
2026-08-05 08:43:57 +02:00
commit 5e32a7c411
404 changed files with 79932 additions and 0 deletions
@@ -0,0 +1,27 @@
"""Exercise 1:
1.)
Write code that chekcs the integer **number**
The number is greater than 10 or less than 0:
if True: print "True" in the console
if not True: print "False" in the console
2.)
Write code that takes two floats x, y and computes:
- x*x + x*y + y*y
"""
# exercise1
number = 8
if number > 10 or number < 0:
print("True")
else:
print("False")
# exercise2
x = 3.0
y = 2.0
result = x * x + x * y + y * y
print(result)