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,30 @@
"""Exercise 4:
1.)
Write a function that takes an integer number "n" as an input.
The function returns a list with all power of twos (2^n)
from 0 to n-1. Use a list comprehension.
2.)
Write a function that takes the resulting list from 1.) as
an input. Iterate over all values of the list and print
the current index and the current value in each iteration.
"""
def exercise1(n):
pass
def exercise2(lst):
pass
def main():
n = 10
lst = exercise1(n)
print(lst)
exercise2(lst)
if __name__ == "__main__":
main()