Pages

Tuesday, 15 March 2016

Alphabet B of Asterick "*"

# To print Alphabet B of Asterick '*'
# Set your font type As Courier

n=int(raw_input("Enter a Number : "))
n=(n-1)/2
for i in range(n) :
    print "*",
print
for i in range(n-1) :
    print "*",
    for i in range(n-1) :
        print " ",
    print "*"
for i in range(n) :
    print "*",
print
for i in range(n-1) :
    print "*",
    for i in range(n-1) :
        print " ",
    print "*"
for i in range(n) :
    print "*",
print

OUTPUT
Enter a Number : 9
* * * *
*       *
*       *
*       *
* * * *
*       *
*       *
*       *
* * * *