File: pyedit-products/unzipped/docetc/examples/RunCode-examples/Untitled3.py

# for sisters everywhere
import sys

poopyheads = input('How many poopyheads? ')
for i in range(int(poopyheads)):
    print('my brother is a', 'poopyhead' * (i+1))

print()
buttheads = sys.argv[1]
for i in range(int(buttheads)):
    print('my brother is a', 'butthead' * (i+1))

print()
chuckleheads = input('How many chuckleheads?')
for i in range(int(chuckleheads)):
    print('my brother is a', 'chucklehead' * (i+1))



[Home page] Books Code Blog Python Author Train Find ©M.Lutz