Home > Article > Backend Development > Basic steps to determine complex numbers in Python
How to determine plural numbers in python?
Related recommendations: "python video"
The first step is to click on the menu bar, enter idle in the search bar, and open the shell .
The second step, enter a number, if it is x=2j 1
The third step, create a If statement, use isinstance to determine whether it is a plural number, if isinstance(x,complex):
The fourth step, print('X is complex')
The fifth step is to press Enter to run.
The above is the detailed content of Basic steps to determine complex numbers in Python. For more information, please follow other related articles on the PHP Chinese website!