getthecourse.blogspot.com is an Online Portal that will teach you Selenium From Scratch. selenium is a Web Application Framework Used to Automate the Front End Web Applications. Selenium can be Coded Using Various Languages such as Java, C#, Python, Ruby, etc.
Different Data Types Present In Python Are:
Data Types Specify What Type of Data has to be Stored in the Variable. Without Datatype We cannot Store Data in the Variable. Pythin Supports the Dynamic Data Types.ie at the time of execution of program, datatype of variable will be decided based on the data which is assigned to the variable.
- Numeric Types - Integer, Float and complex Values
- String Data Types
- List DataType
- Tuple DataType
- Dictionary DataType
1) Numeric Datatypes
Integers
- Numeric Data Types represent Numeric Data Such as Integers, Floating point or complex Numbers.
- Objects that store numerical type of Data come under this Category.
- Integers are Represented by Int Class.
- Integers are the Whole Numbers Without any Fractional Part.
- Integers can be Positive Or Negative Numbers.
- In Python Integers can be Of any Length.
- It's Length is restricted to the System Memory.
Example:
Float Data Type:
Variables that store Floating point or decimal part are referred to as Float Numericals.
- Variables that store real numbers are treated as Float Class.
- Can Be Positive or Negative Numbers.
- Contains both Integer and fractional part.
- Python Floating precision Numbers are accurate up to 15 decimal points.
Complex Data Type:
- python provides the complex class which allows us to store Imaginary Numbers..
- Can Be Positive or Negative Numbers.
- Numericals with Real and Imaginary Parts are treated as Complex Class.
2) String Datatypes
The sequence or array of Characters that are stored in Variables are Refferred to as Strings. In Python, these characters are known as array of bytes. With the Help of Index Position, We can access the characters in a string.
We can Concatenate through the String as Follows.
To Get The Length Of the String We Need to use len() Function.
We can also Slice the Given String With the Following Syntax: