Can you provide an example?

QuestionsQuestions4 SkillsProPython Control StructuresNov, 17 2025
0111

Sure! Here's an example where A is set to 0 and Z is set to 10. This code will print numbers from 0 to 9 with a step of 3:

A = 0  # Starting value
Z = 10  # Ending value

for i in range(A, Z, 3):
    print(i)

When you run this code, the output will be:

0
3
6
9

This shows the numbers starting from 0 up to 9, incrementing by 3 each time.

0 Comments

no data
Be the first to share your comment!