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.
Why You Need Interruption
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.

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
Hint: Ctrl-m command is equal to RETURN key in Unix systems


DELETE: 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 to interrupt the process.


Ctrl-s: Ctrl-s pauses the output and the program is suspended until you sta…

How to Write Python 'Hello World' Program Quickly and Run it

The first Python program looks like the below.  I have explained the steps you need to write your first program in Python.
First Python Program

My first program: odbchelper.py

You can write your program as nameccheck.py module.

if authorsFirstName == 'Irv':
      teachingPython = True
      print 'Pay attention to his wisdom'

How to Run Your Python Program

python namecheck.py

Sample python program

if authorsFirstName == 'Irv':
     teachingPython = True
   print 'Pay attention to his wisdom'

The above if condition checks for first name. 

In python '==', means equal to. It makes true to teachingPython

You can start your python program quickly. Really useful for learning and to use it in projects.

Comments

Popular posts from this blog

10 Top Unix Disk Space Quiz Questions

How to Categorise Python Top Uses

Python Function: How to Write Error Logic