Skip to content

Instantly share code, notes, and snippets.

@DaraDDB1
Created September 22, 2016 14:34
Show Gist options
  • Save DaraDDB1/a035a58fbef9983f20af05f266c68ee9 to your computer and use it in GitHub Desktop.
Save DaraDDB1/a035a58fbef9983f20af05f266c68ee9 to your computer and use it in GitHub Desktop.
STJLOL-DC-phscale
while True:
print("Hello, and welcome to the Acid/Base Detector! Type your number below and I will tell you whether it is an acid or a base!")
ph = input("Please type your number between 0 and 14 here ----> ")
if ph <= "7":
choice=input("Does it have a sour taste? Type Y or N -----> ")
if choice == "Y":
print("Looks like you have an acid on your hands! Be very careful!")
elif choice == "N":
print("Are yopu surr? Acids usually have a sour taste. Try Again!")
elif ph >= "7":
print("You have a base!")
elif ph == "7":
print("You have a nuetral. It is neither an acid nor a base!")
else:
print("You have not typed a number between 0 and 14")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment