For some reason in the code, I was testing whether it would work with two numbers, but the a
variable would be 2 once I typed it out, but the code said when I run it is that it is not 2. What is the problem? Also I used Pycharm if that's part of the problem.
def part1(Answer1, Answer2):
x=Answer1+Answer2
y=x/2
print(y)
print("What are your numbers? 2 max")
a=input("How many numbers would you like? :")
Answer1=input("What is your first number? :")
Answer2=input("What is your second number? :")
if a==2:
part1(Answer1, Answer2)
else:
print(a)