I have a code -
testTemperature = (value.split('A')[1])[0:5]
Where the value =
SS1L,A121.0,
and the result is =
121.0
The question is how ?
I have a code -
testTemperature = (value.split('A')[1])[0:5]
Where the value =
SS1L,A121.0,
and the result is =
121.0
The question is how ?
What is your question?
You are splitting it at A
Returning the second part of the split [1] which is 121.0,
Then you are asking for the first 5 characters [0:5] which results in 121.0
Perfect. Thank you. I was just trying to figure out what is going on cause so many things were happening together.