Friday, March 27, 2020

Data-type

In this section. I will talk about Data-types.

What is data-type?
Types of data. It is data attribute which tall the compiler or interpreter who the programmer intends to use the data. There are lot of data attribute now i will tall you some basic data-types which we use primary level. below i show some python examples of datatype

  1. String
    1. String. String can combine some character together and make a word or sentence. below i will show you an examples with text and image
    2. a = 'Hallow' 

    3. Note Here I can use 'signal at' we can use "double at" that does not matter of string.
  2. Integer
    1. Integer is numerical value whiteout any fraction number like 10, 65, 78, 65 all of the numbers are integer. Below i will show you an examples with an image.

  3. Float
    1.  Float is numerical value with fraction number like 10.00, 3.1416, 5.50, 2.25, 20.75 all of the numbers are float. Below i will show you an examples with an image.
    2. Note look here 10 and 10.00 same number but data type is defrauder because here i used 10.00 (dot) so it float number.
  4. Character
    1.  Character. It is a single character like A, a, b, C, d, D
    2. Note Python has chr data-type but it automatically detect string. don't worry. If we need Character type, data-type. we have to create manually below i show you how we can create character type data-type?
    3. First we have to declare a = chr(a)
  5. List / Array
    1. Look here we use python so. always we call List not array.  List. List can combine "String", integer, float, character. All of the data-type we can use into the list. N......... number of value we can attach into the list too. I show you an example in image.
    2.  
    3. Note: We can create ND list like 3D, 5D, 1000D.
  6. Tuple
    1. Tuple. tuple one kind of list but different is we does not change any value inside the tuple. we change value inside list. It is different between tuple and list. 
I hope you enjoy

Saiful Islam

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 comments:

Post a Comment