473,385 Members | 1,218 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.

Expand|Select|Wrap|Line Numbers
  1. from numarray import*
  2.  
  3. n=input("Enter number of array elements: ")
  4.  
  5. a=zeros(n,Int)
  6. b=zeros(n,Int)
  7.  
  8. for i in range (0,n):
  9.     print "Enter number",i+1
  10.     a[i]=input()
  11.  
  12. for i in range(0,n):
  13.     if a[i]>0:
  14.         b[i]=a[i]+1
  15.  
  16. print "Array1\tArray2"
  17. print "______\t______"
  18. for i in range(0,n):
  19.     print a[i],"\t",b[i]
  20.  
Dec 7 '06 #1
1 8917
bartonc
6,596 Expert 4TB
If you are using a CRT terminal, then send "escape sequences".
Please tell us what you environment is.
Dec 8 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Franklin P Patchey | last post by:
<P><A style="COLOR: rgb(0,0,0); FONT-SIZE: 80%; FONT-FAMILY: 'Comic Sans MS', cursive; TEXT- ALIGN: left" href="javascript:self.close();"><FONT size=4><STRONG>Close this...
15
by: Mason A. Clark | last post by:
I have a page with many links. Browsers like to underline the links -- result is ugly. Is there any (CSS?) way to prevent underlining? (By the way, I decry the common practice of making...
6
by: Henry | last post by:
How can I change the text in a link, originally displayed with the "text-decoration:none" attribute to display an underline during the onMouseOver event, and back to its original (non-underlined)...
1
by: ReidarT | last post by:
How can I underline the first letter in a label in a webform to indicate that the accesskey is the one underlined? Do I have to make to labels and position them side by side? regards reidarT
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
0
by: pdreid | last post by:
Hi there. I am having an issue with one of my access forms. When the Is Hyperlink property is set to yes, underlining Yes and color blue. The link still only shows up with Blue writing and the...
3
by: AWasilenko | last post by:
I'm still in the process of learning python via a handful of books I bought. One book I am reading just introduced Base Class Methods. I found that I needed more understanding on this concept and...
2
by: =?Utf-8?B?Um9iZXJ0IFNtaXRo?= | last post by:
Hi I have a repeater control as shown below. The Itemtemplate contains a table with linkbuttons in each column of the row. However I wish to change the stlyle of the link button to...
3
by: Tim | last post by:
Folks, I'm trying to format a print string so that it reports progress whilst processing a looping structure with a date time stamp appended to the end of the string. This started out life as a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.