Controlling a stepper motor with python

Welcome to the forum.

Did you bother to read the how to get he most from the forum posts?

Those posts will tell you what sort of information that we need in order to help you.

Information that is helpful:
Please post your code. Clean it up by running the IDE autoformat tool before posting in code tags as suggested by the how to get the most threads,

A schematic or wiring diagram is often helpful and are always less ambiguous than a written description. Show all components and power supplies.

Clear photos of the wiring are always welcome.