From 0d3b7ae74a7690023e184c455cdd48ad8e90fa1a Mon Sep 17 00:00:00 2001 From: domagoj-42 Date: Sun, 16 Feb 2025 22:40:26 +0000 Subject: [PATCH 1/2] update print statements to python 3 --- Python/MPL115A2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Python/MPL115A2.py b/Python/MPL115A2.py index 456abd7..0f86cc0 100755 --- a/Python/MPL115A2.py +++ b/Python/MPL115A2.py @@ -53,6 +53,6 @@ fTemp = cTemp * 1.8 + 32 # Output data to screen -print "Pressure : %.2f kPa" %pressure -print "Temperature in Celsius : %.2f C" %cTemp -print "Temperature in Fahrenheit : %.2f F" % fTemp +print ("Pressure : %.2f kPa" %pressure) +print ("Temperature in Celsius : %.2f C" %cTemp) +print ("Temperature in Fahrenheit : %.2f F" % fTemp) From 3dc8c8ec150a593e80db04f0ef9b42fdd22c8b7a Mon Sep 17 00:00:00 2001 From: domagoj-42 Date: Sun, 16 Feb 2025 22:41:42 +0000 Subject: [PATCH 2/2] removed extra spaces --- Python/MPL115A2.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Python/MPL115A2.py b/Python/MPL115A2.py index 0f86cc0..8aaf58a 100755 --- a/Python/MPL115A2.py +++ b/Python/MPL115A2.py @@ -53,6 +53,6 @@ fTemp = cTemp * 1.8 + 32 # Output data to screen -print ("Pressure : %.2f kPa" %pressure) -print ("Temperature in Celsius : %.2f C" %cTemp) -print ("Temperature in Fahrenheit : %.2f F" % fTemp) +print("Pressure : %.2f kPa" %pressure) +print("Temperature in Celsius : %.2f C" %cTemp) +print("Temperature in Fahrenheit : %.2f F" % fTemp)