Posts

Showing posts with the label python interpreter

Featured post

How to Use Special Keys in UNIX

UNIX operating system has some special keys. These you can use to interrupt the program processing or to resume it. The file management and keys totally different in UNIX kinds of operating systems. 



An example of a UNIX special key and its use.
Special Keys in UNIX much useful to take action  when something happens.

1. Why You Need Program Interruption in UNIX.

A scenario where you made some mistake in the input command and you need to stop the further process. Then you can use the CTRL+C command. It is equal to the DELETE command.

2. List of UNIX Special Keys.

RETURN key 
The RETURN key signifies the end of a line of input. On any terminal, RETURN has a key of its own, or return may be typed by holding down the control key and typing a 'm'.

CTRL-m Key
Hint: Ctrl-m command is equal to RETURN key in Unix systems


DELETE Key
The DELETE key stops a program/command immediately, without waiting for it to finish. DELETE can be achieved equivalently with ctrl-c.
Hint: Ctrl-c Command you can use …

How Does Python Interpreter Works

When you are a first time learner of python. Then, the below list of commands you can try on windows interpreter. Python is powerful and multipurpose language. 
The first point I need to tell is Python is a dynamic interpreted language. The next best point is there are no type declarations for:
Variables Methods Parameters FunctionsMore: Python String Comparison and Key points
Why Python code is so short?
The main reason is no compile is required. During run time it validates the code and show errors if any.

How to test your code in Python?
Just go into interpreter, and enter the following commands. So that you can see results.$ python ## Run the Python interpreter Python 2.7.9 (default, Dec 30 2014, 03:41:42) [GCC 4.1.2 20080704 (Red Hat 4.1.2-55)] on linux2Type "help", "copyright", "credits" or "license" for more information. >>> a = 6 ## set a variable in this interpreter session >>> a ## entering an …