Underlining print message

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • coolindienc
    New Member
    • Aug 2006
    • 48

    #1

    Underlining print message

    Is there any way to underline the message I am printing? If youu see my output at the bottom I am tyring to print my message with underline. As of rightnow this is the best I came up with.

    Code:
    from numarray import*
    
    n=input("Enter number of array elements: ")
    
    a=zeros(n,Int)
    b=zeros(n,Int)
    
    for i in range (0,n):
        print "Enter number",i+1
        a[i]=input()
    
    for i in range(0,n):
        if a[i]>0:
            b[i]=a[i]+1
    
    print "Array1\tArray2"
    print "______\t______"
    for i in range(0,n):
        print a[i],"\t",b[i]
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    If you are using a CRT terminal, then send "escape sequences".
    Please tell us what you environment is.

    Comment

    Working...