![]() |
|
#1
|
|||
|
|||
A program that deletes the duplicate numbersI'm trying to write a program that deletes the duplicate numbers. For example if I enter 1 1 2 4 5 7 2 I should print 1 2 4 5 7 This is what I have so far, I don't know how to get rid of the duplicates Python Code:
Last edited by admin : 23-Feb-2008 at 16:44.
Reason: Please insert your example Python codes between [PY] and [/PY] tags
|
|
#2
|
||||
|
||||
Re: A program that deletes the duplicate numbersTake a look at the string processing functions and the list manipulation functions. One of those two should have something that helps.
(Sorry I can't be more specific. I don't have my Python books available right now and I can't remember the exact methods you can use.) __________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
Welcome to Baghdad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| floating point decimal to ascii conversion | crazypal | C Programming Language | 5 | 18-Apr-2007 04:59 |
| Re: Command Line Arguments, Part 2 | WaltP | C Programming Language | 3 | 25-Feb-2006 01:14 |
| Re: Beginning Python Tutorial (Part 4) | crystalattice | Python Forum | 0 | 02-Sep-2005 21:44 |
| [Tutorial] Pointers in C (Part II) | Stack Overflow | C Programming Language | 0 | 27-Apr-2005 17:36 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The