Uploader Comments (T3kB0i8P)
Top Comments
-
Or you can search "download python for mac" in google and click on the official python website
-
how do u get it for mac
Video Responses
All Comments (63)
-
@lightichigo um. that didnt turn out to well. sorry bout that
-
@lightichigo So if im understanding right, you want to make a code for if they get the question right or wrong, they receive a response? I'll type in code, but i didnt get the exact tab length and indentatons right:
def numberquestion(): question=input('What is 3x9? Type in number form'); if question==27: print 'You got it right' else: print: 'You actually got this wrong! You should be ashamed.' print 'Goodbye now!'
-
i need some help what, so i am trying to make something a little different from this video. i am trying to ask some one "what is 3x9"
i want to put if the answer is 27 print "you are smart" but i dont know how to make it say if something is 27 print "you are smart" not if something is greater or of something is smaller than something
-
If you kids are asking stupid questions like "where do i get this" .. you shouldnt be trying to learn how to program. You should master the internet before trying to write programs that will interact with it..
btw, follow @Verrsatiile for more python help
-
@porshtstudios you should try switching input to raw_input and see if that works. I had a similar problem and this fixed my issue
-
I figured it out. instead of using input, I got it to work using raw_input. I was reading on Daniweb that we should always use raw_input instead of input. what are your prefrences?
-
Can you request the users name with input? I tried these two lines and get an error:
code:
name = input ("Please enter your name: ")
print "Your name is", name, "!"
end code:
I get nameerror: name 'usdblades' is not defined
-
@isumu thank you, I'm sorry
I'm late to reply, I was on holiday.
how did you make the print word purple?
cant do it
malaysiaboi 1 month ago
@malaysiaboi have you already saved the file as a .py?
T3kB0i8P 1 month ago
how did you got print purple?
multimediahelp1 11 months ago
@multimediahelp1 Are u saving it as 'filename'.py because the py is important
T3kB0i8P 11 months ago
grr, I get the colours when i first start the program, but the second i save it, the colours go
how do i over come this?
(im on a mac if that helps...)
Brucy6666 1 year ago
@Brucy6666 make sure that you save the file as *nameofthefile*.py
If you dont put the .py the program wont execute and the colours disappear.
T3kB0i8P 1 year ago 4