#Zadanie 1
def generator(arg1="79-900", arg2="80-155"):
a1 = int(arg1[:2])
b1 = int(arg1[3:6])
a2 = int(arg2[:2])
b2 = int(arg2[3:6])
for x in range(a1, a2 + 1):
if x == a1:
for y in range(b1 + 1, 1000):
print(x, "-", y)
else:
for y in range(0, b2):
if y < 10:
print(x, "-", "00" + str(y))
elif y < 100:
print(x, "-", "0" + str(y))
else:
print(x, "-", y)
generator()
#Zadanie2
def brakujace_elementy(al, arg):
l = []
for x in range(1, arg + 1):
l += [x]
print(set(l) - set(al))
brakujace_elementy([2, 3, 7, 4, 9], 10)
#Zadanie3
def skok():
l = []
for x in range(20, 56):
if x % 5 == 0:
l += [x / 10]
print(l)
skok()
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}