It said I needed a comma, but I don’t know where
Here is the code
> motor1.set_velocity(200, PERCENT)
The line of code with “>” before it is where it says I need a comma, Advice?
Write it in blocks/etc. Then view the converted code. Should help. Also… 200% velocity? Does not sound right.
I am not very experienced with python, but I think that since you are putting the code in the input of the function “when_started1” it thinks that it is a parameter, which you would separate with commas, but since you didn’t define the function with any parameters I don’t think you meant to put the other code as an input to the function.
As already mentioned placement of your code is incorrect. I am assuming you are trying to move the motor1 for 5 seconds at 100% velocity.
Here is how you would do it:
# put your code below
You can use blocks and view generated code in the codeviewer to get a better reference.
Thank you for your help, I am new to python.