Skip to content

Instantly share code, notes, and snippets.

@daniel-obrien
Created October 31, 2016 21:19
Show Gist options
  • Save daniel-obrien/0ee32ac7a23418a297ed4514c4be5587 to your computer and use it in GitHub Desktop.
Save daniel-obrien/0ee32ac7a23418a297ed4514c4be5587 to your computer and use it in GitHub Desktop.
pH Scale
#The pH Scale
from datetime import datetime
from time import sleep
while True:
value=input("Please enter the pH value between 1 and 14......")
if value == "7":
print("Neutral e.g Distilled Water")
elif value <= "6":
print(" Acid e.g Lemon Juice")
elif value >= "8":
print("Base e.g Toothpaste")
else:
print("ERROR")
print("Thank You for using this pH scale!!!!")
sleep(3)
print("More Info: https://en.wikipedia.org/wiki/PH#/media/File:216_pH_Scale-01.jpg")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment