commit message from python script

This commit is contained in:
2023-07-21 10:00:01 +02:00
parent 8ebd97cb08
commit b19224a29b
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,9 @@
i = [2, 4, 6, 8 , 10 ]
# List comprehension
test = [x * 2 for x in i]
# lampda function
lam_test = list(map(lambda x: x * 3, i))
print(i)
print(test)
print(lam_test)

View File

@@ -5,3 +5,12 @@ import os, sys
if not os.path.exists(os.sep + "home" + os.sep + os.environ["USER"]) is True: if not os.path.exists(os.sep + "home" + os.sep + os.environ["USER"]) is True:
print("yes") print("yes")
my_discts = {}
with open("/etc/os-release", "r") as file:
lines = list(map(str.rstrip, file))
for line in lines:
date = line.split("=")
my_discts[date[0]] = date[1]
print(my_discts)