Sunday, 10 January 2016

Writing Python Program

Use IDLE Python GUI) or Notepad++ for writing Python programs & save with extension as .py (EX1.py) And press F5 to Run the program.
Comments in Python:
1) For single line comment use #.
     Ex: # User Defined Functions
2) For Multiple line comment use  ''' ''' or """ """.
    Ex:     '''
             User defined
             Functions
             '''

Quotations in Python:
Word = ‘ word ’
Sentence = “ This is a sentence ”
Paragraph = “ “ “ This is paragraph  ” ” ”

No comments:

Post a Comment