Skip to main content

Posts

Featured

Increasing the Complexity of Basic Python Functions - Conditional Statements and GUI

First off, I finally included some very needed graphical changes. My previous posts had the code included as either a JPG or PNG, with no feature to make it interactive. This left a less than diserable result. Now the code should be shown neatly, and color coded by syntax. The code is embedded and useable by converting python to HTML.  Temperature Evaluation Programs Temperature Evaluation Programs /\_/\ >^,^< _ / \ / (___)/ Step 1: Simple Conditional Statement Practice ''' step 1, simple conditional statement practice includes user input and variance in output based on inputs ''' # define variable temp and range def eval_temp(temp): message = "Normal" if temp > 99.8: message = "Fever" elif temp < 95.4: message = "Hypothermia" return message # prompt user input, use float to allow decimal user_temp = float...

Latest Posts

How to Not Get Replaced by AI

Increasing the Complexity of Basic Python Functions - Paint Cost Calculator

Mycoremedation as a Strategic Solution to the Decontamination of Heavy Metals in Soil