Data types | දත්ත වර්ග | python Data types |පයිතන් දත්ත වර්ග
Python Data Types
Data types are the classification or categorization of data items. Data types represent a kind of value which determines what operations can be performed on that data. Numeric, non-numeric and Boolean (true/false) data are the most used data types. However, each programming language has its own classification largely reflecting its programming philosophy.
Python has the following standard or built-in data types:
Numeric
A numeric value is any representation of data which has a numeric value. Python identifies three types of numbers:
Integer: Positive or negative whole numbers (without a fractional part)
Float: Any real number with a floating point representation in which a fractional component is denoted by a decimal symbol or scientific notation
Complex number: A number with a real and imaginary component represented as x+yj. x and y are floats and j is -1(square root of -1 called an imaginary number)
Boolean
Data with one of two built-in values True or False. Notice that 'T' and 'F' are capital. trueand false are not valid booleans and Python will throw an error for them.
Sequence Type
A sequence is an ordered collection of similar or different data types. Python has the following built-in sequence data types:
String: A string value is a collection of one or more characters put in single, double or triple quotes.
List : A list object is an ordered collection of one or more data items, not necessarily of the same type, put in square brackets.
Tuple: A Tuple object is an ordered collection of one or more data items, not necessarily of the same type, put in parentheses.
මෙතෙක් පලවූ සියලු වීඩියෝ මෙම post එක පහල දාලා තියෙනවා මුල ඉදලාම බලලා ඉගෙනගන්න.
Chanel එක subscribe කරලා සහයෝගය ලබාදෙන්න,අනිත් අයටත් බලන්න share කරන්න.
Episode 01 - python හැඳින්වීම
https://youtu.be/xwxauFsCYmk
Episode 02 - විචල්යන් (variables )
https://youtu.be/0OpPQ51v0hs
Episode 03 - විචල්ය නාමකරණය
https://youtu.be/5ESY5G6-NAU
Episode 04 - විචල්ය පැවරුම්
https://youtu.be/AZqpxVAjfvU
Episode 05 - print function
https://youtu.be/k18CYJPWm3E
Episode 06 - python Data types
https://youtu.be/9AjunP0EYy0
Episode 07 -input function in python
https://youtu.be/0xrIK1kbfok
Episode 08 - Python Comments
https://youtu.be/hh2eiYwON4o
Episode 09 -len Function in Python
https://youtu.be/vSkwUTjh97Y
Episode 10- sep & end in python
https://youtu.be/VUfBgzGYNkw
Episode 11 -index operator in python
https://youtu.be/7UyVUimLR04
Episode 12 -Slicing operator in python
https://youtu.be/a4Ss_7HJpyU
-~-~~-~~~-~~-~-
Please watch: "How to code a simple calculator ( Project 01) |C Programming සිංහල Tutorial Episode 25 |SL Android"
https://www.youtube.com/watch?v=A6nvSvDcsUA
-~-~~-~~~-~~-~-