Home  >  Article  >  Backend Development  >  Basic steps to determine complex numbers in Python

Basic steps to determine complex numbers in Python

爱喝马黛茶的安东尼
爱喝马黛茶的安东尼Original
2019-06-15 17:07:3210996browse

How to determine plural numbers in python?

Related recommendations: "python video"

Basic steps to determine complex numbers in Python

The first step is to click on the menu bar, enter idle in the search bar, and open the shell .

Basic steps to determine complex numbers in Python

The second step, enter a number, if it is x=2j 1

Basic steps to determine complex numbers in Python

The third step, create a If statement, use isinstance to determine whether it is a plural number, if isinstance(x,complex):

Basic steps to determine complex numbers in Python

The fourth step, print('X is complex')

Basic steps to determine complex numbers in Python

The fifth step is to press Enter to run.

Basic steps to determine complex numbers in Python

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn