i am new to python and am working on a simple code for a project.
I am to end up with and output that says: "Please enter your name: Bubba"
I am to use
name = input("Please enter your name:")
However, when I input the name "Bubba" the project says it should end up being red. However when I run the program it ends up blue just like the "please enter our name" string.
I'm sure I'm missing something simple but I do not know what it is. Help?!
Oh and I am using Python 3.2.2 (i that has anything to do with it)
4
Contributors
10
Replies
8 Hours
Discussion Span
1 Year Ago
Last Updated
11
Views
Related Article:color vs colour python 2.5
is a solved Python discussion thread by rickyfre that has 4 replies and was last updated 1 year ago.
I'm supposed to run it in the idle window but write it in another empty window.
I just started learning python last week so i dont know about tkinter windows. (sorry, i dont know names of everything yet)
If you could post the exact assignment that might clear things up, I'm just having 2 issues with this: 1,Posting python to a site isn't really a "beginner" project, 2, Making the output color in IDLE change isn't something that's common practice.
that was the exact assignment. I am uploading it to athene. its for a class, and I have it working except for the fact that the input ("Bubba") is not red. Therefore I'm not getting the assignment correct.
However when I run the program it ends up blue just like the "please enter our name" string.
Blue is correct,red comes if you make an error.
This is how it should be and has always been in IDLE.
You can try to change that color option->configure IDLE.
But that is just stuid,so leave alone.
Yes i figured it out,
I was doing it right it was just the site was very picky and i forgot a space or something after saying "Please enter your name: "
Thank you guys though.
Sorry, if I wasted your time. I knew it was something simple I was missing but I didnt think it was that stupid!