Lab 3 Python

Replace dashes with spaces:

numStr = input (‘Please input a number: ‘)
x = int(numStr)

while x > 0 and x != 1:
    if x%2==0:
        x = (x / 2)
        print (x)
    else:
        x = (x * 3 +1)
        print (x)
if x ==1:
    print (‘Done’)