Basic steps to determine complex numbers in Python

爱喝马黛茶的安东尼
Release: 2019-06-25 14:26:18
Original
10987 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!