Printing to the Screen: The simplest way to produce output is using the print statement where you can pass zero or more expressions separated by commas. This function converts the expressions you pass into a string and writes the result to standard output as follows − print " python is really a great language," This produces the following result on your standard screen - Python is really a great language, Reading Keyboard Input: Python provides two built-in functions to read a line of text from standard input, which by default comes from the keyboard. These functions are − raw_input input The raw_input Function: The raw_input([prompt]) function reads one line from standard input and returns it as a string (removing the trailing newline). Example: str = raw_input("Enter your input: ") print "Received input is: ", str This prompts you to enter any string and it would display same string on the screen. When I typed...
Best place for beginners to start from.