a = int(input("Zadej menší číslo: ")) b = int(input("Zadej větší číslo: ")) c = "Ahoj" print("Ahoj") # Porovnávací operátory == != < <= > >= is is not """ print(a==b) print(a!=b) print(ab) """ if a!=b: # Sem se program podívá, pokud je a jiný od b print("nerovná se") pass else: # Sem se program podívá, pokud se a rovná b print("rovná se") pass """ while a!=b: print(a) a += 1 print("ukončil jsem cyklus") """ #for iterator in range (start, stop, step): """ for i in range(a, b+1, 1): print(i) """ poleZavodnikuADisciplin = [] poleZavodniku = [] poleDisciplin = [] prosloTo = False for number1 in range(a, b, 1): poleZavodniku.append(number1) for number2 in range(1,11,1): if prosloTo is False: poleDisciplin.append(number2) print("Závodník: " + str(number1) + ", Disciplína: " + str(number2)) poleZavodnikuADisciplin.append((number1, number2)) prosloTo=True print(poleZavodnikuADisciplin[45]) print(poleZavodnikuADisciplin[2:23]) print(poleZavodnikuADisciplin[23:]) print(poleZavodnikuADisciplin[-1]) print(poleZavodnikuADisciplin[:-2])