Data types, Variables and Type casting in python
Data Types Data types are the classification of data which bifurcate the type data for processing, before giving any command to obtain the desired result from the computer, one must have to understand the type of the data you’re dealing with. Following are the common types of data, Text: String: it is being used to present the one or more collection of characters put in single quote or inverted commas. Syntax Str () print (“Hello Digital Drive”) Hello Digital Drive is a string. print ( type (“Hello Digital Drive”)) #type() function output the value of the variable Class ‘str’ Numeric: Integer: It represents the negative or positive whole numeric values. Syntax Int () print (10) 10 is an integer. print ( type (10)) #type() function output the value of the variable Class ‘int’ Float: It represents the fractional numeric values. Syntax float () print (10.68) 10.68 is a float. print ( type (10.68)) #t...