![]() This way, you will also be able to add comments to the end of the line for each of the input arguments, as I have done in the above example. You will see the benefits of this approach of coding in particular with the visualization functions that take many optional arguments as input, and you will frequently need to experiment with those options by repeatedly adding or commenting them out of your code. This way, at any point, if you don’t need any of the input arguments, you can simply comment it out without affecting or changing the rest of your code. Tip: When adding arguments to plot() function or in general, any other function in Python (or any other programming language), I highly recommend you to write each of the input arguments to the function on a separate line, just like what I have done in the above with np.linspace() where each one of its input arguments appears on a separate line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |