Add numbers in the file automatically using python #132
Replies: 3 comments 6 replies
-
By just make a main.py and open the index.js file the link of the file : https://github.com/deeptamresearchfoundation/main.py and run this file place the cursor in index.js where we put the numbers Tip: you can low the value of sleeping time in python to save time but your computer could crash so not low the value of sleeping time |
Beta Was this translation helpful? Give feedback.
-
I think that's a bad idea. I'm very sure that all the 375000 numbers that are in here were added by hand. Let's not change our process now. Also, I think it's better if a human is in full control over the process, as a computer might incorrectly classify a number sometimes. |
Beta Was this translation helpful? Give feedback.
-
This is not good programming practice. As already identified previously, this line of code is not suitable for production environments: if(x % 2 == 0):
ret = "true"
else:
ret = "false" (lines 10-13), as the % operator has not been tested enough. Current method of adding numbers still remains as best practice for production environments. You may use the % operator in your own projects, if you are willing to take the risk. |
Beta Was this translation helpful? Give feedback.
-
We can add numbers in the file using python
Beta Was this translation helpful? Give feedback.
All reactions