Quote:if Name != "Justin" and Name != "justin": #makes it so he can type in with OR without capsI think you meant
print(A) #your lying to me but lets continue
Color= input("What is your favorite color?")
if Name == "Justin" and Name == "justin": #answer was as expected continue collecting info
Color = input("What is your favorite color?")
or
not and
. Name cannot be both Justin and justin at the same time. You can utilize python builtins and convert the input to lowercase, then you dont have to check for uppercase
if name.lower() == 'justin':Then name could be justin, JUSTIN, Justin, etc.
Color is never defined because of the issue above. None of your if conditions are ever true because Name cannot be both Justin and justin. It however can not be both justin and Justin. If you put anything other than either of those, it runs through as you are saying "if not both". You want the or operator here, not and.
There is another package whois, that has versions for python 2 and 3, it also is old, but at least can be installed with pip
pip install whois
Recommended Tutorials: