print(
"""
__ __ __
| | | | | |
| | | | ___| | ___ ___ _ __ ___ ___
| |/\| |/ _ \ |/ __/ _ \| '_ ` _ \ / _ \
\ /\ / __/ | (_| (_) | | | | | | __/
\/ \/ \___|_|\___\___/|_| |_| |_|\___|
"""
.strip())
print("\t\t\t\tto the pHinator 9001")
ph = input("\nPlease enter a pH value:")
if ph == "7":
print("\nA pH value of 7 is NEUTRAL")
if "0" < ph < "7":
print("\nA pH value of less than 7 is ACIDIC")
if "14" > ph > "7":
print("\nA pH value of more than 7 is ALKALINE")
if ph < "0":
print("\nAn error occurred. Value must be between 0 and 14")
if ph > "14":
print("\nAn error occurred. Value must be between 0 and 14")
cont = input("\nPress 1 to enter a new value, Press 2 to exit.")
if cont == "1":
(RESTART)
if cont == "2":
input("\n\nPress the enter key to exit.")
exit
This is my first attempt at making a proper python program, and I've looked around for this but couldn't find a useful answer that I knew how to apply to my program, Thanks :)