When posting code in a forum, you are required to use code tags.
This is particularly important in Python so that the indentation (spaces) is not lost.
Forums generally remove leading spaces from the text, unless the text is enclosed in code tags.
Your problem is: TypeError: not all arguments converted during string formatting
This means you have more arguments as targets. The %s is a placeholder for str.
With % formatting (6 placeholders > 6 arguments):(thagrol made it with 3 placeholders)
Use instead f-strings:https://www.geeksforgeeks.org/python/fo ... gs-python/
This is particularly important in Python so that the indentation (spaces) is not lost.
Forums generally remove leading spaces from the text, unless the text is enclosed in code tags.
Your problem is: TypeError: not all arguments converted during string formatting
This means you have more arguments as targets. The %s is a placeholder for str.
With % formatting (6 placeholders > 6 arguments):
Code:
print("%s %s %s %s %s %s \n" % ("Temperature ",row[1], "C Humitidy ", row[2], "% Date ", row[3]))Use instead f-strings:
Code:
print(f"Temperature: {row[1]} °C | C Humitidy: {row[2]} % | Date: {row[3]}\n")Statistics: Posted by DeaD_EyE — Mon Dec 15, 2025 12:50 pm