Data Types - Python

Integer, is a whole number, positive or negative, without decimals, of unlimited length.

The float data types are used to store positive and negative numbers with a decimal point, like 35.3, -2.34.

The complex() function returns a complex number by specifying a real number and an imaginary number.

Boolean variable can have only two values – True or False

String is a collection of alphabets, words or other characters

A list is a data structure in Python that is a mutable, or changeable, ordered sequence of elements

Tuples are immutable, meaning they cannot be changed once they are created.

Set is used to store several items in a single variable.

Dictionaries are used to store data values in key:value pairs.


原文链接:Data Types - Python

© 版权声明
THE END
喜欢就支持一下吧
点赞9 分享
It is during our darkest moments that we must focus to see the light.
越是在艰难困苦的时候,我们越是要看到希望
评论 抢沙发

请登录后发表评论

    暂无评论内容