The task is to repeat almost the same thing over and over again, so you can do it using the for statement."In addition, this time, ""repeat while changing from 0 to 20"", so simply change one variable from 0 to 20 and repeat it."
For example, the program below prints numbers from 0 to 20.
This problem can be solved by changing the contents of the for statement in the same way.
Perhaps they are learning machine learning while copying and pasting Python programs from some kind of material.If you want to do something more advanced, you have to understand the programming language Python itself to a certain extent, so I think it will be easier to do any Python tutorials in the future.
© 2022 OneMinuteCode. All rights reserved.