Pure Software code
 
www.puresoftwarecode.com

SOFTWARE Institute
Teach YourSelf
100 Software Programming Training Courses
For Free Download


CHRISTIANITY Institute
HUMANITIES Institute
more the 400 Subjects, All for Free Download.
 
Lebanon  
Python Programming Courses
Software Institute     
 
 
  Home : Software Institute : Python Page 1  Home

Python Pages   -   1   2    3    4   5    6

1-  Python Tutorial, Learn Python even ...
 
1.1-  Python for Everybody Course
1.2-  How to Install Python on Windows
1.3-  The 12 BEST Python IDE, Python Editors for Windows
1.4-  Python, How to Install pip
Python Tutorial
2-  Python 14 Sample Programs
 
2.1-  Python Program to Find ASCII Value of Character   2.9-  Python Program to display different ways to test multiple
2.2-  Python Program to display value of try operation   2.10-  Python Program to display Math Function
2.3-  Python Program to display calendar of given month of the year   2.11-  Python Lambda Functions
2.4-  Python Program to display list of Values.   2.12-  Python Program to display functions of Matplotlib
2.5-  Python Program to display list of Values of Operations.    
2.12.1-  Python Program to display function of Matplotlib
2.6-  Python Program to display list of Values of Formats    
2.12.2-  Python Program, Python Data Analysis,
2.7-  Python Program to Merge Mails    
2.12.3-  Python Program to display function of Matplotlib
2.8-  Python Program to display values of data      

 

1-   Python Tutorial, Learn Python even ...
   
     1.1- Python for Everybody Course
 
Teach yourself,  Python for Everybody

Python for Everybody Course, Html files  -  (11.6 MB zip file, PythonForEverybodyCourse.zip),     download

 0   Intro,  Python for Everybody & Installing
 1   Why to write Program Python?
 2   Variables, Expressions ...
     
 3  Conditional Execution
 4   Functions ...
 5   Loops and Iterations Structures.
     
 6   String Variables and Functions.
 7   Files, Open and Read ..
 8   Lists ...
     
 9   Dictionary Data Structures
 10   Tuple Data Structures
11   Regular Expressions
     
 12   Network Programming
 13   Using Web Services
 14   Object-Oriented Programming
     
 15   Databases, the Structured Query Language
  16   Data Visualization
 
Python Tutorial,
Teach yourself Python
   
     1.2- How to Install Python on Windows
 
Python is a high level object-oriented, programming language. It has built-in data structures, combined with dynamic typing & binding which makes it an ideal choice for rapid application development. Python also offers support for modules and packages, which allows system modularity and code reuse.
 
 
  How to Install Python on Windows
   
     1.3- The 12 BEST Python IDE (Integrated Development Environment), Python Editors for Windows
 
 
Python code editors are designed for the developers to code and debug program easily. Using these Python IDEs(Integrated Development Environment), you can manage a large codebase and achieve quick deployment.
 
  The 12 BEST Python IDE, Python Editors for Windows
 
     1.4- Python, How to Install pip
 
 

PIP is a package management system used to install and manage software packages written in Python. It stands for “preferred installer program” or “Pip Installs Packages.”
PIP for Python
 is a utility to manage PyPI package installations from the command line.

Note:
1-
If you have Python version 3.4 or later, PIP is included by default
2- If you are using an older version of Python on Windows, you may need to install PIP. You can easily install PIP on Windows by downloading the installation package, opening the command line, and launching the installer.

.
 Example
                   how to install the anytree module at Command Prompt
                   C:\Users\User>  =  C:\Users\%UsenName%>

 
  PIP for Python - This tutorial will show how to install PIP on Windows, check its version, upgrade, and configure.
 
 
 
2-  Python 14 Samples Program
 
   2.1- Python Program to Find ASCII Value of Character
 
  1. In this program, you'll learn to find the ASCII value of a character and display it.
    Using PyCham Compiler - (IDE), to compile Python project / file
     
  2.  Source Code:

    Download this Source Code at python file  - (0.6 MB txt file)   download   

    Download this Source Code at txt file - (1.01 MB txt file)   download    

      Python Code, Find ASCII Value
     

  3. Output:
 
 
   2.2- Python Program to display value of try operation
  1.  In this program, you'll learn to display value of "try operation"
    Using PyCham Compiler - (IDE), to compile Python project / file
     
  2.  Source Code:

      Download this Source Code at python file  - (0.3 MB txt file)   download

    Download this Source Code at txt file - (1.01 MB txt file)   download

      Python Code, to display value

     


  3. Output :
    Variable x is not defined
 
   2.3- Python Program to  display calendar of given month of the year
  1.  In this program, you'll learn to display calendar of given month of the year .
    Using PyCham Compiler - (IDE), to compile Python project / file
     
  2.  Source Code:

      Download this Source Code at python file  - (0.3 MB txt file)   download

    Download this Source Code at txt file: calendar1.txt - (1.01 MB txt file)   download

      Python Code, to  display calendar
  3. Output :
     
 
   2.4- Python Program to display list of Values.
  1.  In this program, you'll learn to display list of Values.
    Using PyCham Compiler - (IDE), to compile Python project / file
     
  2.  Source Code:

    Download this Source Code at python file: Pfile-proglist2.py - (2.45MB py file)   download  

      Python Code, to display list of Values
     

  3. Output:
 
   2.5- Python Program to display list of Values of Operations.
  1.  In this program, you'll learn to display list of Values of Operations.
    Using PyCham Compiler - (IDE), to compile Python project / file
     
  2.  Source Code:

    Download this Source Code at python file: Pfile2-proglist2.py - (2.45 MB py file)   download  

      Python Code, to display list of Values of Operations
     

  3. Output:
    1
    2
    3
    1.0
    2.8
    3.0
    4.2
    s1
    2
    3.0
    Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
    True
    True
    Yes, apple is a fruit!
    mango
    banana
    ['orange', 'kiwi', 'melon']
    ['apple', 'blackcurrant', 'cherry', 'orange', 'kiwi', 'melon', 'mango']
     
 
  2.6- Python Program to display list of Values of Formats
  1.  In this program, you'll learn to display list of Values of Formats
    Using PyCham Compiler - (IDE), to compile Python project / file
     
  2.  Source Code:

    Download this Source Code at python file  - (1.26 MB txt file)   download  

    Download this Source Code at txt file - (2.37 MB txt file)   download

      Python Code, to display list of Values of Formats
     

  3. Output:
    I'm a car!

    What should I do? type [A]=Accelerate, [B]=Brake, [O]=dometer, or [S]=average Speed?A
    I'm going 5 kph!

    What should I do? type [A]=Accelerate, [B]=Brake, [O]=dometer, or [S]=average Speed?S
    The car's average speed was 5.0 kph
    I'm going 5 kph!

    What should I do? type [A]=Accelerate, [B]=Brake, [O]=dometer, or [S]=average Speed?0
    I don't know how to do that

    What should I do? type [A]=Accelerate, [B]=Brake, [O]=dometer, or [S]=average Speed?5
    I don't know how to do that

    What should I do? type [A]=Accelerate, [B]=Brake, [O]=dometer, or [S]=average Speed? ...
 
   2.7- Python Program to Merge Mails
  1.  In this program, you'll learn to merge mails into one.
      * String Methods
      * Python File I/O
    When we want to send the same invitations to many people, the body of the mail does not change. Only the name (and maybe address) needs to be changed.

    Mail merge is a process of doing this. Instead of writing each mail separately, we have a template for body of the mail and a list of names that we merge together to form all the mails.
     
  2.  Source Code:

     Download this Source Code at python file  - (0.8 MB txt file)   download

    Download this Source Code at txt file  - (1.22 MB txt file)   download

      Python Code, to Merge Mails
     

  3. Output:
    Process finished with exit code 0 (0 err0r)
    ----------------------------------------------------------
    For this program, we have written all the names in separate lines in the file "names.txt". The body is in the "body.txt" file.

    We open both the files in reading mode and iterate over each name using a for loop. A new file with the name "[name].txt" is created, where name is the name of that person.

    We use strip() method to clean up leading and trailing whitespaces (reading a line from the file also reads the newline '\n' character). Finally, we write the content of the mail into this file using the write() method.
 
   2.8- Python Program to display values of data
  1.  In this program, you'll learn and display values of data.
    Using PyCham Compiler - (IDE), to compile Python project / file
     
  2.  Source Code:

      Download this Source Code at python file: file1-progKlm.py  - (1.39 MB txt file)   download  

      Python Code, to display values of data

  3. Output:
 
   2.9- Python Program to display different ways to test multiple.
  1.  In this program, you'll learn to display different ways to test multiple.
    Using PyCham Compiler - (IDE), to compile Python project / file
     
  2.  Source Code:

    Download this Source Code at txt file - (0.396 MB txt file)   download

      Python Code, to display different ways

  3. Output:
 
   2.10- Python Program to display Math Function
  1.  In this program, you'll learn to display Math Function
    Using PyCham Compiler - (IDE), to compile Python project / file
     
  2.  Source Code:

    Download this Source Code at Python file (Py_sapp.py) - (1 KB Python file)   download

      Python Code, to display Math Function

  3. Output:
       Step 1
     
       step 2
 
   2.11- Python Lambda Functions
  1.  In this program, you'll learn to display Lambda Functions
    What is Lambda?
    Lambdas, also known as anonymous functions, are small, restricted functions which do not need a name (i.e., an identifier). Lambda functions were first introduced to the field of mathematics by Alonzo Church in the 1930s.
    7 Lambda Functions:
    #1
    #2- What a lambda returns-1
    #3- What a lambda returns-2
    #4- lambdas in filter()
    #5- lambdas in map()
    #6- lambdas in reduce[vV2][J3]
    #7- REGULAR FUNCTION

    Using PyCham Compiler - (IDE), to compile Python project / file
     
  2.  Source Code:

    Download this Source Code at Python file (Py_lambada1.py) - (2 KB Python file)   download

      Python Code, Python Lambda Functions

  3. Output - 7 Lambda Functions:
    7 Lambda Functions:


    #1
    #2- What a lambda returns-1
    #3- What a lambda returns-2
    #4- lambdas in filter()
    #5- lambdas in map()
    #6- lambdas in reduce[vV2][J3]
    #7- REGULAR FUNCTION

 
   2.12- Python Program to display  functions of Matplotlib. Matplotlib is a plotting library for the Python
 web adrress of functions of Matplotlib. Matplotlib is a plotting library for the Python: https://matplotlib.org/gallery/index.html    
   2.12.1- Python Program to display  function of Matplotlib. Matplotlib is a plotting library for the Python -1
  1.  In this program, you'll learn to display function of Matplotlib. Matplotlib is a plotting library for the Python programming language and its numerical mathematics extension NumPy. It provides an object-oriented API for embedding plots into applications using general-purpose GUI toolkits 
    project file:  Py-test.pyproj

    Using Microsoft Visual studio 2019 Compiler - (IDE), to compile Python project / file

     
  2.  Source Code:

    Download this Source Code at txt file - (0.376 MB txt file)   download

      Python Code, to display  function of Matplotlib -1
     

  3. Output:
 
  2.12.2- Python Program, Python Data Analysis,  Plotting emission graph for country. (Matplotlib is a plotting library)
  1. Name: Python Data Analysis
    • Purpose: Plotting emission graph for country
    • Algorithm:
      Step 1: Take the input from user to visualize data
      Step 2: Getting the index of Country and passing it to plot function, Setting the Title and Label of Plot

      Matplotlib is a plotting library for the Python programming language and its numerical mathematics extension NumPy. It provides an object-oriented API for embedding plots into applications using general-purpose GUI toolkits 
       
    • Using Microsoft Visual studio 2019 Compiler - (IDE), to compile Python project / file
    • Download the visual studio 2019 (python) [stores Emissions.csv and py-4za-day3.py] -
      (25 KB zip file)  
      download


  2.  Source Code:

    1-   (Emissions.csv - Excel file store Data - CO2 statistics (1997 to 2010) of 195 Countries)     -     Download this Excel file, 34 KB
       
    2-

    Download this Source Code at Python file - py-4za-day3.py - (8 KB Python file)   download    

     

      Python Code, Python Data Analysis, Plotting emission graph for country. (Matplotlib is a plotting library)

  3. Output:
    Step1 - select a year ...
     
    Step2 - input year = 2000
     
    Step3 - select the country ...
     
    Step4 - input country = Qatar
     
    Step 5 - to plot the Emissions in Qatar
 
  2.12.3- Python Program to display  function of Matplotlib. Matplotlib is a plotting library for the Python - 3
  1. In this program, you'll learn to display function of Matplotlib. Matplotlib is a plotting library for the Python programming language and its numerical mathematics extension NumPy. It provides an object-oriented API for embedding plots into applications using general-purpose GUI toolkits 
    project file:  Py-test.pyproj

    Using Microsoft Visual studio 2019 Compiler - (IDE), to compile Python project / file
     
  2.  Source Code:

    Download this Source Code at txt file - (0.45 MB txt file)   download 

      Python Code, to display  function of Matplotlib - 3

  3. Output:
 

Python Pages   -   1   2    3    4   5    6

 
 www.puresoftwarecode.com  :    HUMANITIES Institute  ART Institute & Others
 SOFTWARE Institute - "Free, 120  Training Courses"  CHRISTIANITY Institute    
 Python, Teach yourSelf Programs in 6 pages, in English    Le HANDICAP c'est quoi ?   (in French)  Basilica Architecture, in the Shape of a Cross
 VISUAL STUDIO 2019, C# Programs, in English  Holy BIBLE in 22 Languages and Studies ...  Drugs and Treatment in English, french, Arabic  Old Traditional Lebanese houses
 VISUAL STUDIO 2010 in English  220 Holy Christian ICONS  Classification of Wastes from the Source in Arabic  5 DRAWING Courses & 3 Galleries
 VISUAL STUDIO .NET, Windows & ASP in English  Catholic Syrian MARONITE Church    Meteora, Christianity Monasteries - En, Ar, Fr
 VISUAL STUDIO 6.0 in English  HOLY MASS of  Maronite Church - Audio in Arabic  Christianity in the Arabian Peninsula in Arabic  Monasteries of Mount Athos & Pilgrimage
 Microsoft ACCESS in English  VIRGIN MARY, Mother of JESUS CHRIST GOD  Summary of the Lebanese history in Arabic  Carved Rock Churches, in Lalibela, Ethiopia
 PHP & MySQL in English  SAINTS of the Church  LEBANON EVENTS 1840 & 1860, in Arabic  
 SOFTWARE GAMES in English  Saint SHARBEL - Sharbelogy in 10 languages, Books  Great FAMINE in LEBANON 1916,  in Arabic  my PRODUCTS, and Statistiques ...
 WEB DESIGN in English  Catholic RADIO in Arabic, Sawt el Rab  Great FAMINE and Germny Role 1916,  in Arabic  
 JAVA SCRIPT in English  Читать - БИБЛИЯ и Шарбэль cвятой, in Russe  Armenian Genocide 1915  in Arabic  4 Different STUDIES
 FLASH - ANIMATION in English     Sayfo or Assyrian Genocide 1915 in Arabic  SOLAR Energy & Gas Studies
 PLAY, 5 GAMES      
     Christianity in Turkey in Arabic  WELCOME to LEBANON
 SAADEH BEJJANE Architecture Andree Zouein Foundation    YAHCHOUCH, my Lebanese Village
 CARLOS SLIM HELU Site.  new design  REPORT, Cyber Attack Attacks the Current Site  Prononce English and French and Arabic Letters  ZOUEIN, my Family - History & Trees
       Chucri Simon Zouein, Computer engineer
     
echkzouein@gmail.com
© pure software code - Since 2003