Skip to main content

Lesson #1, Installing Python(For Windows)


Welcome to our first lesson,
First of all we have to install python, so you have to install Pycharm on your computer and python if it is not already installed.

Here are the download links, you can install these from these links.
Download Link:
Python: https://www.python.org/downloads/
Pycharm: https://www.jetbrains.com/pycharm/download/

Here are the steps to download for the windows:

1. Double-click pycharmEDU.exe file to launch the installer. Your computer will
verify the installer:

Now the first page of installation wizard will open:

Click the Next Button.

2. On the Choose Install Location screen, specify the destination directory where
the product will be installed. The installation wizard will suggest a default
location. To choose a custom location, click Browse and select the desired
location in your file system. When ready, click next.


3. On the Installation Options screen, specify the following options:
o Create Desktop shortcut: if you select this check box, the shortcut to
PyCharm Edu will appear on your Desktop. Thus you will be able to
launch PyCharm Edu from your Desktop, by double-clicking this shortcut
icon. If you leave this check-box unselected (this is what the installer
suggests), then the shortcut on the Desktop will not be created, and you
will have to launch the application from the Start menu or from your file
system only.

  •  If you are working on Windows XP, you can opt to select the checkbox
  • Create Quick Launch shortcut.
  •  Choose Python version: in this section, you have to specify which Python
  • version will be installed for PyCharm Edu. The installer suggests you to
  • choose between Python 2.7 and Python 3.4. If you are not sure which
  • version suites you better, refer to the comparison of versions.

 If you want all files with the py extension to be opened by PyCharm,
select the .py check-box in the section Create associations.

Click Next.


4. On this page of the installation wizard, you have to specify in which folder of
the Start menu the application shortcuts will appear. If you do not enter the
folder name, then your Start menu will contain the folder Jet Brains.
Click Install.
See how the Python interpreter you’ve selected is installed:


5. When installing Python is ready, you will see the last page of the wizard:
Select the check box Run PyCharm Edu (if you want to launch the product
immediately), and click Finish.

Comments

Popular posts from this blog

Writing first python program

  We are here to write our first program,it will  be an easy program just printing the entered word or value. The syntax of python language is very simple and easy and you dont have to confuse your mind with any complexity. So here is our first program print ( "Hello my name is abc" ) print command is used to display the output written in brackets with inverted commas. As we have typed the sentence "Hello my name is abc". So this command will simply print this sentence as show above in the picture.  

Code Simple Calculator in python

  We are going to write code for a simple calculator in python, It will show you that how can you use basic python statements and function to make a calculator that will do addition, subtraction,multiplication and division. Calculator python coding: def add (a , b): return a + b def subtract (a , b): return a - b def multiply (a , b): return a * b def divide (a , b): return a / b print ( "Select Desired Operation." ) print ( "1.Add" ) print ( "2.Subtract" ) print ( "3.Multiply" ) print ( "4.Divide" ) while True : choice = input ( "Enter choice(1/2/3/4): " ) if choice in ( '1' , '2' , '3' , '4' ): num1 = float ( input ( "Enter first number: " )) num2 = float ( input ( "Enter second number: " )) if choice == '1' : print (num1 , "+" , num2 , "=" , add(num1 , num2)) elif choice == ...

Conditional Statements

Conditional STATEMENTS Normally, the statements are executed sequentially as written in the program (i.e. Top to bottom). This is known as the normal flow of control. But sometimes the operational flow of control has to be altered depending upon a condition. The statements that allow to do so, are known as selection statements. Most important selection statement that python offers is the If statement. Selection statements are also known as conditional statements or decision statements. THE IF STATEMENT An if statement tests a particular condition; if the condition evaluates to true, a course of action is followed i.e. a statement of a set of statements is executed. If the condition is false the course of action is ignored. The syntax of if statement is as shown below: if (expression) : Statement THE ELIF STATEMENT In some cases the program requires you to write multiple if statements. This results in many condition evaluations thus slowing up the program. So to avoid th...