Macroprogramming: Difference between revisions

Content deleted Content added
m uncategorized
m Add category and format code
Line 79:
 
<syntaxhighlight lang="python" line="1">
temperatures = Resource.objects.filter(title='"temp'")
results = [temp.GET() for temp in temperatures]
avg = sum (results) / len(results)
TEMP_THRESHOLD = 24
if avg > TEMP_THRESHOLD:
Resource.objects.get(title='"fan'").PUT('"on'")
</syntaxhighlight>
 
Line 108:
 
{{uncategorized|date=February 2023}}
 
[[Category:Articles with example Python (programming language) code]]