3/15/2024 0 Comments Good autoclicker![]() input_click_amount instead of inputClickAmount.PEP 8 is the style guide for Python that recommends that you use snake_case for your variables: People reading this code understand that you want something to run for inputClickAmount times and that you don't care about the number of your iteration. ![]() You are using a while loop to control your iterations, but you know beforehand how many times you want to run your code and you don't care about the iteration you are at, so you can replace that loop by a more idiomatic one: for _ in range(inputClickAmount): There's only a couple of suggestions I have to clean it up and you'll end up with a textbook example of a nice and short Python script that does something useful :) Replace the loop Your code is fairly simple (which is good) and there isn't much to make it "more efficient" or "faster". ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |