Posts

List, Sort, Reverse, Adding, removing & modifying elements of List

Image
  PYTHON  COMMENT Comments are an extremely useful feature in most programming languages. Everything you’ve written in your programs so far is Python code. As your programs become longer and more complicated, you should add notes within your programs that describe your overall approach to the problem you’re solving. A comment allows you to write notes in English within your programs. How to write comment In Python, the hash mark (#) indicates a comment. Anything following a hash mark in your code is ignored by the Python interpreter. For example: #This is comment line LIST: A list is a collection of items in a particular order. You can make a list that includes the letters of the alphabet, the digits from 0–9, or the names of all the people in your family. You can put anything you want into a list, and the items in your list don’t have to be related in any particular way. In Python, square brackets ([]) indicate a list, and individual elements in the list are...

How to save and run Python program?

Image
Step for Saving Python Program: Youtube Tutorial:  How to Save and run Python program  (Please Subscribe this Channel for more video tutorial) Open Notepad using run command or Right click on desktop and select New text document. Save it with extension (.py). You will see the file like this. Sometime it happens that you will not see this file type due to hidden file extension of .txt, you have to unhide this option. Step to unhide the file extension: Go to File explorer Click on the File option on left top side. Select Change Folder and Search options. Click on View tab. Uncheck the Hide extensions for known file type. Click on Apply to Save. Now again open new text document and see there you will the .txt extension. You can see difference between this. 4. Now save the .py extension file and remove the .txt extension from text document you will see the python file logo. To run Python program using file Type Run on search bar and type cmd to open Command Prompt or Type cmd on S...

What is Python and How to install Python?

Image
Python is the open source computer programming language, with support of object-orientated, functional and procedural code structure. One of the widely used programming language. It can used in both the standalone and scripting applications.  Features of Python: Code readability Software Quality Program Portability  Design for developer Component Integration. Python runs on platforms: Unix Linux Android Macintosh Windows Java .NET iOS and more You can downloads the software from the official websites:  Download Python Installation Guide Windows For Windows(8/10)   You have to download the executable file with extension (.exe) in your windows system. It is always recommended to use latest version of Python. As latest version is fixed and stable. You can checkout here about the latest version,   Python Latest Version  .  After Downloading the latest version of Python go to the download folder. Double click on the Python Executable file(.exe file) or Rig...