this is my code:
r = int
for q in range(0 + (casovaJednotka - celkovaCasovaJednotka), casovaJednotka + 1):
r[q] = q + 1
q = q + 1
for i in range(casovaJednotka, 0, -1):
for w in range(0 + (casovaJednotka - celkovaCasovaJednotka), casovaJednotka):
if r[w] != i:
print(q[w])
if casovaJednotka - 1 == w:
print("0\n")
and this is the problem:
if r[w] != i:
TypeError: 'type' object is not subscriptable
and also it has the same problem with
r[q] = q + 1