HOME/Articles/

simple python-example-88 (snippet)

Article Outline

Python example 'python-example-88'

python-example-88

Python example: python-example-88

#!/usr/bin/python
# -*- coding: UTF-8 -*-

if __name__ == '__main__':
    n = 1
    while n <= 7:
        a = int(raw_input('input a number:\n'))
        while a < 1 or a > 50:
            a = int(raw_input('input a number:\n'))
        print(a * '*')
        n += 1