
def method(x):
        if x == 1:
            print "hi!"
        elif x == 2:
            print "welcome to my code!"
            x = 0
x = 1
while x > 0:
    method(x)
    x += 1
    # method with and if statement and a while/for loop
