I am new with python and coding and I am trying to learn how to use for and while functions. I am trying to create program that asks from user two values (valueA and valueB). and in each loop valueA doubles and valueB grows by a hundred. And the loop should stop if valueA is greater than valueB. or valueB or valueA is greater than 10000.
a = int(input("Give value a: "))
b = int(input("Give value b: "))
while (True):
print(a, b)
a *= 2
b += 100
if a > b:
break
if a or b > 10000:
break
This does not work..