Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 22nd, 2004, 07:58 AM
Jackity84 Jackity84 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 36 Jackity84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 48 m 23 sec
Reputation Power: 5
Question, new here..

Lets say i have this..

x = int(form["start"].value)
y = int(form["end"].value)
z = 0
while ((x+z) <= y):
print (x+z), '&amp#' + str(x+z) + ';', unichr(x+z) + unicodedata.name(unichr(x+z))
z = z + 1

and i want to put (x+z), '&amp#' + str(x+z) + ';', unichr(x+z) + unicodedata.name(unichr(x+z)) in a table in html, how would i do that?

Reply With Quote
  #2  
Old November 22nd, 2004, 09:19 AM
Jackity84 Jackity84 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 36 Jackity84 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 48 m 23 sec
Reputation Power: 5
Maybe i should make it more clear..
1. Create the query page that asks the user for the range they want to view.
2.Create a web script that just outputs the two numbers the user entered, like "945 949".
3. Modify the web script so it counts from the first to last number they entered. That is, create a loop and just output the numbers, like "945 946 947 948 949."
4. Modify the web script so it outputs the first column of the table. Add in the second and third columns. Check to make sure the output is valid.
5. Experiment with the unicodedata module in the Python interpreter. Make sure you can manually convert a number to the Unicode character description, as described above. (Your computer may or may not be able to display the actual Unicode character if you try the unichr function. You might see something like \u20ac instead. As long as the function doesn't give an error, it should be fine.)
6. Add the character name output to your program and test it with a range like 945–949 or 32–97 where all of the characters are defined.
7.Add the checking for undefined characters and limit the output to 200 rows.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > Question, new here..


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT