gama inclusiva de 2 a 5 em Python

# range(2, 6)
for idx in range(2, 6):
    print(idx, end=" ")  # 2 3 4 5
Wissam