Saturday, October 23, 2010

Basic Input / Output Commands

        Input means getting something, some kind of information, into a program while it is running. Python has a built-in function, called raw_input that is used to get input from the user. Try this example.
    





       
       


      
        We use raw_input for strings or words. On the other hand, we use input for integers. Try this example.




No comments:

Post a Comment