Some suggestions that help you to write high quality python code :
1. Using Assert
2. Using try Exception, e
3. When swap two variables, try not to use intermediate variable.
Try this:
x,y=y,x
I wrote about the solutions to some problems I found from programming and data analytics. They may help you on your work. Thank you.
ezoic
Subscribe to:
Post Comments (Atom)
R is not a simple programming language, and it does better on reading excel files than python
R is not a simple programming language, and it does better on reading excel files than python . tried to read excel files to python and R. i...
-
Previously, I wanted to install "script" on Atom to run PHP. And there was some problem, like the firewall. So I tried atom-runner...
-
I tried to commit script to bitbucket using sourcetree. I first cloned from bitbucket using SSH, and I got an error, "authentication ...
-
Last article , we described how to resolve sourcetree authentication via SSH keys failed. We used HTTPS instead. Here is how to use SSH. ...
No comments:
Post a Comment