Added: 4 years ago
From: Rustomac
Views: 193,552
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (561)

Sign In or Sign Up now to post a comment!
  • On the 'print Celsius' line, the 'print' turned purple, and when I tried to run it, it said Syntax Error, and highlighted the Celsius part of the text. I'm using version 3.2.2

  • @TheBrokenVampire2 Same Here! Are you on a mac?

  • @Stormrage32 No, I'm not on a Mac. Just a normal laptop.

  • Comment removed

  • @TheBrokenVampire2 Is it UNIX (Linux or Ubuntu) based? If so then the console commands will be the same. So if you figure it out, please tell me!

    Thanks!

  • @Stormrage32 Figured it out! indenting is very important!

  • @TheBrokenVampire2 I get the same thing on 2.7.2 version as well. I typed it all out and tried to copy and paste, still got the same thing. Wonder what is wrong?

  • @pos6666666 I fixed it by typing in "Celsius. print" without the quotation marks, though when I open up the shell it doesn't do anything.

  • @TheBrokenVampire2

    in version 3.2.2, they want you to place the variable in brackets. Therefore, you'd type

    print(Celcius) instead of just print Celsius. One of the small changes of 3.2.2 :D

  • @TheBrokenVampire2 Python 3.x handles print statements differently. You need to put everything you want to print in parentheses. So it would be:

    Print (Celsius, 'Celsius =', Fahrenheit, 'Fahrenheit');

  • nvm, i opened the command line instead of the GUI :)

  • what version of Python do you have? because version 2.7.2 is kinda different.

  • Everything I try never works copyed everything exactly down and still didn't work

  • top!

  • I finally got Autodesk Maya down, but then I realized it's not what I wanted to do. I wanna do programming. This tutorial doesn't start by saying all kinds of bullshit about Python or using technical language. This goes right into practice and it's easy to understand. Thank you.

  • Nice touch with the music at the beginning haha. Very fitting.

  • Thank you very much friend

  • very good. how much more advanced is this that the hello world stuff. I'd like to see you walk people through building the series of 10 choices and all the background you had to do.

  • Im a noob and i still dont get It, I only know html, css, and javascript :/

    Javascript is confusing though.

  • @mytac0sftw well, html and css are NOT programing languages. Javascript is small and easy programing language, which is used on the web. I would suggest to start with normal programing language, for example JAVA, C, C#, PHYTON.

  • Thanks a lot my friend. very helpful for beginner

  • very clear, thanks man.

  • are you using python on a windows pc? I have a PC wanting to write linux script and would like to learn python is it possible to do this?

  • @infowaredm never mind disregard my last comment. Apparently I already have python 2.6 installed on my linux machine

  • how do you put the * in that?

  • Where can you find python shell?

  • @AFFIXIATION1 Thats not necessarily true. I can run the python shell and I use windows.

  • IT WON'T LET ME RUN IT! I DEF THEN THE NAME AND THE () SO WHAT'S WRONG?

  • This was very helpful! I'm new to programming but i still understand what your saying!!! THX

  • I haven't been able to open the python shell but the python system that opens works fine for me. The only difference is that I am unable to distinguish colors for the different commands which is kind of a bummer... if anyone knows how to resolve this, let me know.

  • @ryanyatesie7 Python shell is linux. You need linux to run shell. No matter what.

  • @AFFIXIATION1 thank you so much for clearing this up!

  • @AFFIXIATION1 Nope.

  • @AFFIXIATION1 acctually, you can run the python shell most macs, which is because they upon bsd unix. nearly all *nix os's, by default, come comes with python 2.* pre-installed.

    unix is older than linux, so you're wrong anyway.

    like @TheAJkiter i run python on windows, via ms-dos.

  • nevermind

  • How do u get to python shell??

  • Programception

  • Great video! The only confusion for me is that I am still not quite sure where and when you have to use certain characters, such as () [] {} '' "" , etc.

    Thank you very much for sharing :)

  • @TheRlwelch Single quotes (') and double quotes (") are interchangeable. They're used to represent strings (i.e. text). Like if I said print("hello") that would print the text hello. If I said print(hello) without quotes, that would look for a variable called hello and print the value of it. Square brackets [] are for Lists (see documentation), curly brackets {} for dictionaries. Round brackets () have a few uses that are too long to explain here: tuples, functions and math equations

  • TNX man !!!!!!!!

    

  • Thx man!!!

  • For some reason when I try the menu, it asks for the choice before displaying the menu.

  • Amazing Music!!

  • is there a special way belnder uses python? or is just makes it easier to integrate the 3d models with python? please help

  • Great Job Man!!

    Is your Second part of tutorial released?If So, Please forward me the link please.

    Thanks

    Best Regards

    Siddharth

  • So my code for the C2F calculator works, but my print function only appeared purple, the only way I could get it green was to delete the indent, which made the code not work. Do you know why my print function is purple, same as the input function?

  • Comment removed

  • this helped a lot thanks so much :D

  • Well done Rustomac! Well done! Did you do a part II?

  • print keeps coming up in purple

  • How do emebd python into html? Any software i need?

  • I'm 13 years old...I plan to learn everything up to C++ before I go to college :)

  • @UnboundLegend I would recommend you to learn one really good instead of the basics of 20 different languages. The basics is pretty much the same but different syntax.

  • Good job. I'm learning Python now for school. I'm 42 and I know it's not too late! Thanks!

  • Thanks!

    I've read that Python is a good all purpose language and needed a good tutorial explaining it from the shell.

  • What is python used for?

  • @az100eletronics12 Coding and programming

  • My Lord, I'm learning from someone in IED. XD

  • This was extremely helpful thanks :o)

  • Thankyou Sir

  • Thank you!!!

  • 8:00 PROGRAM-CEPTION

  • @lostboycmd I was just thinking that. XD

  • Thanks this really helped me know the basics about the shell, Ive done some c++ and wanted to expand my knowledge to python but I must confess the tutorial with python 3.2 told me nothing about how the shell worked I was getting so frustrated It nearly put me off all together untill I saw this. Nice one!!

  • The Beatles rock.

  • lol thats an old version

  • @uratoko that's quite obvious seeing as the video was uploaded on 2007.\/

  • Thank you, very useful for beginner!

  • good

  • ok i just started this stuff today in college and im lost completely.....here the problem i have to do: ""A company has determined that an annual profite is typically 23 percent of total sales. write a program that ask the user to enter the project amount of total sales, and then displays profit that will be made from the amount.hint: use the value 0.23 to represent 23 percent"" so what the hell do i start with and maybe i can figure out the rest?

  • Well explained, thanks a lot. I found it difficult to follow google Tutorial but yours is great, straight to the point. Keep up the good work. 

  • syntax error

  • Hello, I have problem. I'm the very very starter of phyton and then im trying to translate your first program (sry i didnt watched all video) i get an syntax error.

    here is my translation:

    def C2F (): Pagal Celsiju = input('Irasykite laipsius Pagal Celsiju: '); Pagal Farenheita = (9.0/5.0) * Pagal Celsiju +32; print Pagal Celsiju, 'Pagal Celsiju =', Pagal Farenheita, 'Pagal Farenheita';

    i cant understand where is the problem? I writed it the same as yours but yours worked. Thanks

  • @blckoff Hey mate, your problem is your variable declarations, for example (Pagal Celsiju) python does not accept space in-between a variables name and neither does other languages as of what I know. So you have to couple your variables names, you got two options for that 1) PagalCelsiju 2)Pagal_Celsiju and you have to do the same for (Pagal Farenheita).

  • @Nedim1991 Thanks!!! Thats very helpful :)

  • @stvncrnw93 Please tell me you know I was joking. Please.

  • pussy sex

  • this was awesome. I was trying to learn academically and I couldn't understand the concept of how everything ties together but seeing a simple program's layout, it's more visually understandable. thanks

  • can you please let me know from where can I download python shell? I would surely appreciate if you could help us here.

  • Comment removed

  • Comment removed

  • Comment removed

  • Hello man, I Like it, But i have one question, How do you exit of shell, because when I run the program and exit of shell. It's deleting my program. What I do?

    Sorry I don't listem english very well...

  • @Sheybfreak ctrl S before leaving the shell, it should save.

  • Very informative

  • Comment removed

  • i keep getting the print on the last line to show up purple and not orange.

  • this is useful, i didnt know you can combine shell and separate programs like this, call in the shell function from the open prog. cool.

  • very good tutorial but semi is pronounce "sem-me" not "sem-i" lol

  • @stvncrnw93 he was ironic you tard

  • The Code for 3.2.

    def C2F():

     Celsius = input (" Enter temperature in Celsius: ") Fahrenheit = (9.0 / 5.0) * Celsius +32 print "Celsius =",Celsius, "Fahrenheit =", Fahrenheit

    C2F()

  • it shows the first print in red colors if it helps.not just the leterrs but the whole word

  • i can't make print orange except for typing it at the start of a line but this way the program doesn't work.anything else i've tried turned it into purple.can someone help please?

  • very simple and very efficient tutorial .. cheers :)

  • u can save it

  • dont you have to put a eval after like the first variable =..like right before the input?

  • Why make this if you can use CMD? I don't want to complain or anything but programming .bat files is so much easier than this (in my opinion), although if you work hard enough, you can make better stuff with this.

  • @MonsterHunterTriNoob in oder to make it look more programmish you type in the code for wxPython

    wxPython makes a frame menu color font and text for a program check out thenewbostons tutorials for that and i will also post some in a day or two

  • help... why is the word print in green not in orange? what's wrong? also when i save the program it always crashes... help!

  • @MrHighlander96 the reason yours looks like "CMD" is because you are running Python (command line), you need to run Python (GUI) which is a Graphical User Interface.

  • @idgman94 type the lines SEPERATELY and press enter after each line

  • A better looking one would be(at the end) print 'Celsius =', Celsius, 'Fahrenheit', Fahrenheit,;

  • @Rustomac thx man! u taught me pythin in 10 minutes... now readin googles documentation was a breeze... in an hour i had set up my own app!

  • du är liten...

  • I have one problem. with me python looks exactly like CMD. WHAT IS WRONG!!!!

  • @MrHighlander96 when u hav installed python, go to start then python the IDLE (Python GUI). Problem Solved! I was stuck with the same problem for an hour!

  • @yashendra2797 THANK YOU SOO MUCH THAT WAS THE PERFECT ADVICE, I CAN FINALLY START PROGRAMMING XD

  • @MrHighlander96 You need to run idle.

  • If possible, I would like to see a video on how one would make python "live" or getting to the final destination.

    For example, when designing a website locally and eventually uploading it onto a server for the web.

    Could you show how one would put something like the conversion calculator from your video into a program for the computer or phone, outside of the shell?

    Thank you.

  • @idgman94 i think its just 3.2 that does it, I'm not sure of all the new crap or lack of yet, but i wrote it out in 2.7.1 and it worked just fine...

  • As soon as I went saved it all the font colors changed to black is that normal?

  • @KThom1225

    Also, I can't run it in shell.

  • @KThom1225 IDLE doesn't save as a .py file unless you add it to the name of your saved file. Just save it as [enter program name].py

    Worked for me.

  • @KThom1225 ya it is

  • @KThom1225 load it again and it will show up as colored n when it ends it will change to plain text

  • This is solid

    BUT I think you should go ahead & type out everything as you go to MAKE SURE everyone is on the same page NOW I could not open the C2F for some reason

    here is a copy/paste

    C2F ( ) : Celsius = input ( ' Enter degrees in Celsius : ' ) ; Fahrenheit = (9.0 / 5.0) * Celsius +32; print Celsius, 'Celsius =' , Fahrenheit, 'Fahrenheit' ;

    all the colors on the fonts were correct & matched accordingly Is this in the correct format ?

  • Excellent please do create some more

  • Cdm programs can solve basically anything as long as you know how to code it to be able too.(I'm a c++ coder) lol

  • Hey, i gave you a thumbs up however i did not finish the video. I am on my iPhone(idk if PC would be better) and i could not read anything you wrote :/ please try using a better recorder I'n the future to accommodate people with smaller screens and or people with older devices that may have less quality.

  • Create a tutorial of nothing but useful little programs that you would use on a regular basis. Show how to create these types of programs, and I for one, will be watching more of your tutorials.

  • Holy crap.

    It took me days to finally notice that IDLE can't save.... I got so confused hahaha.

    That really cleared it up for me. And by the way, this is a nice guide. One of the few things I think I might actually enjoy learning.

    One last thing, I could make a program that can solve quadratic equations and stuff like that, correct?

  • This video was awesome! It's like Python for dummies xD

    Thanks for the vid man

  • Best tutorial i've found so far.

  • Hey- just wanted to say thank you for making that! Getting into programming is difficult, and your layout/pacing was very well communicated.

  • Nice song choice! LUV THIS SONG

  • Rustomac you rock! :-)

  • thank you very good

    i keep watching

  • Dear Anyone who can answer this question, I just downloaded 2 programs called Blender 3D, meant for CGI animations ect., and voodoo, meant for 3D camera tracking. After I finish everything in voodoo, I export it to blender to tack objects into the video, and to do that, I had to save the voodoo file as a blender python script, that way, blender will know that the video is a tracked one, but when I put it in blender, I click run python script, and an error occurs, is this software the answer?

  • when I downloaded python compilers, they opened up in CMD. I've done a couple scripts so far, but now that I've watched your video, it seems a little more simple to do it in the "shell". Where can I get the shell?

  • @Doclolwut if your running linux type IDLE into a terminal or if your running windows go to your start menu and find "pythonX) and it should be with that(IDLE)

  • hey i have a problem, i tried to recreate this (the simple one (Celsius to Fahrenheit)) but when i ran it it said: function C2F at 0x011CDA30

    what does this mean?

  • @IIamachaser

    It means you probably didn't put the () after you typed C2F... you have to type C2F() to bring up your program

  • where did you download python

  • @Akralaa There's this great new thing called Google

  • @Akralaa for windows go to python.org and DL it from there, or if your in linux-ubuntu type "sudo apt-get install python3" dont know about debian or knoppix though =(

  • Wow. This is very similar to Lua, but I only know a bit, so I might be wrong!

  • @Mythbusters5436 yes python is similar to Lua but python puts more emphasis on the syntax of your scripts =/

  • Good job! I need a tutorial that explain a little bit more variables thanks!

  • Can you do some more programming video examples? This is one of the better videos I have seen and I am trying to learn programming. Thanks

  • that music at the end scared me, lol

  • You're tutorial is very helpful. Do you have a video on using while loops?

  • does any one know where i could download python shell for windows7 64 bit?

  • @0MrRofl The python shell he is using is known as IDLE. You can download the core python modules from python.org. 

  • there is a way to do this program in 2 lines.

    def C2F(c):

    return (9.0/5.0) * c + 32

    when you start the program instead of doing C2F() you do C2F(Celsius you want to convert)

  • why the hell is my *print* purple?

  • @metallica21984  nevermind lol

  • @metallica21984 because it is a key word.

  • THANKS MATE THAT HELPED ME A LOT :)

  • The semicolon means end of the line not go to the next line

  • Great tutorial. I am taking a Python class soon and I wanted to use it as my scripting language for games. Do you think that Python is a good choice for games?

  • @Sam034Reviews Python is general-purpose and can be used for anything. However! If you are looking for speed and cpu-intensive games then this is NOT the language for you. If you want to develop simple games, then python is perfect.

  • Loving the Beatles

  • where can i download the python shell?

  • @Tguy96 its on the python website

    i believe its python.org

  • cool program, thanks!

  • great program for beginners like me,thx man

  • any help? When I put in print, it turns purple meaning it things it is an input. Why isn't it turning yellow and ending the program.

  • Okay so I want to create a script that when i enter a random group of letters it finds all the words that that group of letters creates.. can u help?

  • you is cool

    

  • Thank you for this, really appreciate it. It'd be good to go over more functions.

  • on the 4th line when i put print it turns it purple not yellow. for some reason its taking it as an input not a print command?

  • @crw6919 did you ever figure that out... im having the same problem

  • @crw6919 The color doesn't matter- It is what it does. Is it working? You can set the colors in some kind of user preferences.

  • @crw6919 hey i found the answer to your problem thumbs up this comment to keep it alive

    your question "was on the 4th line when i put print it turns it purple not yellow. for some reason its taking it as an input not a print command?"

    well just press space anfter print and then put a backspace or retype it

  • @crw6919 it takes it as an built in, function, I presume. It probably depends on python version you have.

  • I used the first formula to create a Pounds to Dollars Calculator

  • Why did you put(9.0,5.0) after farhenheit

  • @Inuyashafreak9494 Its the actual math equation that the program has to execute to get the answer

  • What is the difference between input and raw_input?

  • so, when you go new window, is that the script mode that they are speaking about in the book?

  • hey dude, does Python have a visual interface for development like visual basic, etc.?

  • great tut!