janotte's Profile
Reputation: 988
Master
- Group:
- Expert w/DIC++
- Active Posts:
- 5,135 (2.11 per day)
- Joined:
- 28-September 06
- Profile Views:
- 27,983
- Last Active:
Yesterday, 02:39 PM- Currently:
- Offline
Previous Fields
- Country:
- AU
- OS Preference:
- Mac
- Favorite Browser:
- Who Cares
- Favorite Processor:
- Who Cares
- Favorite Gaming Platform:
- Who Cares
- Your Car:
- Who Cares
- Dream Kudos:
- 25
- Expert In:
- C/C++
Latest Visitors
-
Zereo 
16 Apr 2013 - 16:28 -
darek9576 
15 Apr 2013 - 04:12 -
ishkabible 
10 Jan 2013 - 23:20 -
hira ahmed 
25 Dec 2012 - 16:32 -
lucky3 
23 Nov 2012 - 08:32
Posts I've Made
-
In Topic: Error running Python IDLE
Posted 27 Apr 2013
A few links to look at:
Sadly you don't tell us what OS you are running on but I guess by the look of the screen shot that you are on Windows.
http://stackoverflow...ng-on-windows-7
http://www.gossamer-...n/python/958563 -
In Topic: Error through looping
Posted 17 Apr 2013
chan 06, on 18 April 2013 - 12:36 AM, said:I don't really get what you were trying to say.
Do you understand the term 'flag'?
I am not sure how much shared language we have here.
Here's the very simple algorithm I am suggesting.
foundName = false positionInLoop = 0 loop through the name list if current list item == name then foundName = true positionInLoop = loop iterator break out of loop if foundName == true then print PositionInLoop else print -1
This is a terrible way to find a match in a list in Python but I am assuming you are using the looping idea because you have been told you have to.
If you just want to find an item in a list then there are far better ways to do this.
Have a read here
http://docs.python.o...structures.html -
In Topic: a program that change the program to an execution program
Posted 17 Apr 2013
Once you have compiled the code to a binary that binary will run on any machine.
You don't need an IDE to run code.
I wonder if I am missing the point of your question completely? -
In Topic: guys ,, I have an assignment
Posted 17 Apr 2013
101newbie, on 17 April 2013 - 11:02 PM, said:helping out does not cost anyone anything
Well it does cost your classmates the credit they deserve for doing the work if you can get the same mark without putting in the effort.
And in the long run it costs you because you will one day end up needing to be able to live up to what it seems you can do and since you can't then you will lose then.
Have a try at writing the Python code. If you won't even try then we really can't help you. -
In Topic: Error through looping
Posted 17 Apr 2013
sorry - didn't understand what you were asking the first time.
okay you won't know if the name was not in the list until you have finished looping through the whole list. That makes sense doesn't it?
So set a flag to false before you start looping.
If you find a name set the flag to true before you break out of the loop.
Outside the scope of the loop test the flag.
If it is true then the name was in the list.
If it is false then... <you can answer that can't you?>
My Information
- Member Title:
- code > sword
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Private
- Website URL:
-
http://
Friends
-

no2pencil
-

OliveOyl3471
-

jozze21net
-

sm5312
-

soumyadeva
-

maxpower1991
-

THEROCK...
-

skyhawk133
-

william_ta...
-

Elcric
-

macosxnerd101
-

xstahsie
-

lew3611
-

Crunch
-

Priya06
-

haarsh
-

Chevon
-

sumit1435192
-

Salem_c
-

OsO
-

Hitch911
-

oscode
-

Apprentice123
-

MajorRager
-

Gorian
-

C++NeWb
-

nflman124
-

potpotb23
-

huzaifa.iu
-

ishkabible
-

jelskie
-

glady
-

mightysparks
-

goldfish
-

Top_Noob
-

chuajh
-

jimblumberg
-

James_Alex
-

raghav.nag...
-

hira ahmed
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
chuajh
31 Mar 2011 - 19:41http://www.dreamincode.net/forums/topic/225366-computer-science-curriculum-question/page__p__1297885__fromsearch__1&#entry1297885
goldfish
27 Feb 2011 - 08:11goldfish
26 Feb 2011 - 07:52taratatat
21 Jan 2011 - 00:16janotte
12 Jan 2011 - 01:22Thanks for 'hi'.
Alex6788
11 Jan 2011 - 16:48