Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6173

Automation, sensing and robotics • Re: Extract specific variable from this code

$
0
0
The read_temp() functions are currently returning a tuple containing the 2 values, you could just extract the second value and round the result.

Code:

F1 = round(read_temp()[1],1)print(F1)

Statistics: Posted by rpiMike — Fri Dec 22, 2023 11:04 pm



Viewing all articles
Browse latest Browse all 6173

Trending Articles