Strings
- Any values given with in double quotes are represented as string values. Eg. "welcome"
- Below code is an example for assigning string values to the variables.
- Any words preceeded by '$' symbol is substituted with the same named variables.
- In python the data type of variable changed based on the values assigned.
- Example 1, age = "twenty" . In this the variable is string.
- Example 2, age = 20. In this variable is integer;
python string code
1 2 3 4 |
|
Output
- Rovan is the Manager of IITM
Reference
Authors(Git):Devi(95.45%), Thejesh GN(4.55%)