An article summarizing the pitfalls addicted to python

Fraction

NG:

def F(z, tau):
    return z + 1 / 2 * np.sin(2 * z) - pi / 2 * tau

OK:

def F(z, tau):
    return z + 1. / 2. * np.sin(2 * z) - pi / 2 * tau

1 / 2 is 0 in C, python and ruby. JSer and PHPer don't cry

Recommended Posts

An article summarizing the pitfalls addicted to python
Post an article with an image to WordPress with Python
How to create an article from the command line
An introduction to Python Programming
Leave the troublesome processing to Python
In the python command python points to python3.8
How to get the Python version
[Python] How to import the library
An introduction to Python for non-engineers
An alternative to `pause` in Python
[Python] Change the alphabet to numbers
[Python Tutorial] An Easy Introduction to Python
An easy way to hit the Amazon Product API in Python
How to know the internal structure of an object in Python
The road to installing Python and Flask on an offline PC
A story about a person who uses Python addicted to the judgment of an empty JavaScript dictionary
[Python] I tried to summarize the set type (set) in an easy-to-understand manner.
How to convert Python to an exe file
The story of making Python an exe
Is the number equivalent to an integer?
The file name was bad in Python and I was addicted to import
Python amateurs try to summarize the list ①
An introduction to Python for machine learning
What I was addicted to Python autorun
An example of the answer to the reference question of the study session. In python.
The road to compiling to Python 3 with Thrift
[Road to intermediate Python] Article link summary
An introduction to Python for C programmers
I tried to explain how to get the article content with MediaWiki API in an easy-to-understand manner with examples (Python 3)
[Python] I want to know the variables in the function when an error occurs!
About the point that python 3.x got stuck due to an error due to caching_sha2_password
Feel free to turn Python using the library into an AWS Lambda function
Building an environment to comply with the Python coding standard (PEP8) with Eclipse + PyDev
[Blender Python] Set an event timer to refresh the screen 60 times per second
To automatically send an email with an attachment using the Gmail API in Python
[What is an algorithm? Introduction to Search Algorithm] ~ Python ~
How to use the C library in Python
The fastest way for beginners to master Python
Introduction to Python Let's prepare the development environment
Python constants like None (according to the reference)
Try to solve the Python class inheritance problem
[Python] How to change the date format (display format)
Just add the python array to the json data
Send an email to Spushi's address with python
The easiest way to synthesize speech with python
Try to solve the man-machine chart with Python
Specify the Python executable to use with virtualenv
How to crop an image with Python + OpenCV
Say hello to the world with Python with IntelliJ
Install the python package in an offline environment
Draw graphs in Julia ... Leave the graphs to Python
Excel X Python The fastest way to work
The easiest way to use OpenCV with python
The trick to write flatten concisely in python
[Introduction to Python3 Day 20] Chapter 9 Unraveling the Web (9.1-9.4)
[Algorithm x Python] How to use the list
Use the Python framework "cocotb" to test Verilog.
How to erase the characters output by Python
How to get the files in the [Python] folder
Introduction to Python "Re" 1 Building an execution environment
[Python] Predict the appropriate rent for an apartment