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 4 Home

Python Pages   -   1    2    3    4    5   6          

 
  1- Introduction
    Note:
      1- in Visual Studio 2017, 2019 or 2022. I ended up with a folder where new projects were created by default in C:\users\%username%\source\repos
      2- C:\users\%username%\source\repos = C:\users\...\source\repos
 
 
2-  Python program, Python With Sql database
 
  1. Python program, Python With Sql database
  2. Create a new Python project In Visual Studio 2022
    1. the Microsoft Visual Studio (... or 2019 or 2022) is a powerful IDE for Python language
    2. Open/Run Microsoft Visual Studio 2022
    3. To view Python templates, search for python.
       Select the Python Application template, and select Next.
    4. Create a new Python project In Visual Studio 2022
              On the Configure your new project screen  -   (specify a name and file location for the project, and then select Create)
              Project name: CMPython
              Location: C:\Users\...\source\repos    (default location for
      Visual Studio 2022)
       


  3. The new project opens in Visual Studio 2022  - (Visual Studio 2022 Compiler - IDE, to compile Python project / file )
    1. The Visual Studio Solution Explorer window shows the project structure
    2. Python Project Properieties - CMPython
      • Projct Folder: C:\Users\...\source\repos\CMPython
      • Startup File: CMPython.py
      • Project file: CMPython.sln
    3. Download Python Project : CMPython.zip - (9.5 KB zip file)   Download
    4. Project consist of:
       5 Python Forms:         (CMPython.py )
                                             (combo1.py )
                                             (combo2.py )
                                             (search_1.py )
                                             (Searchword.py )

     

    Download Python Project : CMPython.zip - (9.5 KB zip file)   Download     



  4. SQL Database for Python / Connecting to your SQL Server database in Visual Studio 2022 for Python
     
    4.1- Download SQL Server Data Tools (SSDT) for Visual Studio
     
    SQL Server Data Tools (SSDT) is a modern development tool for building SQL Server relational databases, databases in Azure SQL, Analysis Services (AS) data models, Integration Services (IS) packages, and Reporting Services (RS) reports. With SSDT, you can design and deploy any SQL Server content type with the same ease as you would develop an application in Visual Studio.
     
      Install SSDT with Visual Studio 2022
     
    4.2- Python SQL Driver - pyodbc
     
    command prompt   pip install pyodbc
    Create an SQL database using  SQL Server
    connecting to SQL using pyodbc:
    SERVER = '<server-address>'
                         DATABASE =
    '<database-name>'
                        USERNAME =
    '<username>'
                        PASSWORD =
    '<password>'

     

     4.3- Connecting to your SQL Server database in Visual Studio
     
      Connecting to your SQL Server database in Visual Studio 2022 for Python
     

     

  5. Source Code:
      1 Download this Source Code at python  file: CMPython.py  - (2.5 KB Python file)   download    
      2 Download this Source Code at python  file: combo1.py  - (2.5 KB Python file)   download    
      3 Download this Source Code at python  file: combo2.py  - (2.5 KB Python file)   download    
      4 Download this Source Code at python  file: search_1.py  - (2.5 KB Python file)   download  
      5

    Download this Source Code at python  file: Searchword.py  - (2.5 KB Python file)   download      

     
      Python Code, to display  all information Display to the screen


  6. Output of  python  files: 
    CMPython.py,  combo1.py, combo2.py, search_1.py and , Searchword.py
     
      1- Python  file: CMPython.py
     
     
      Output of  python  files:  CMPython.py,  combo1.py, combo2.py, search_1.py and , Searchword.py
   
3-  Python Program, to Print Microsoft database Access, name = pic\Database1.accdb
 
  1. Python program, to Print Microsoft database Access, name = pic\Database1.accdb
  2. Create a new Python project In Visual Studio 2022
    1. the Microsoft Visual Studio (... or 2019 or 2022) is a powerful IDE for Python language
    2. Open/Run Microsoft Visual Studio 2022
    3. To view Python templates, search for python.
       Select the Python Application template, and select Next.
    4. Create a new Python project In Visual Studio 2022
              On the Configure your new project screen  -   (specify a name and file location for the project, and then select Create)
              Project name: PyAccesscon
              Location: C:\Users\...\source\repos    (default location for
      Visual Studio 2022)
       


  3. The new project opens in Visual Studio 2022  - (Visual Studio 2022 Compiler - IDE, to compile Python project / file )
    1. The Visual Studio Solution Explorer window shows the project structure
    2. Python Project Properieties - PyAccesscon
      • Projct Folder: C:\Users\...\source\repos\PyAccesscon
      • Startup File: PyAccesscon.py
      • Project file: PyAccesscon.sln
    3. Download Python Project : PyAccesscon.zip - (951 KB zip file)   Download
    4. Project consist of:
       One Python Form - (PyAccesscon.py )

     

    Download Python Project : PyAccesscon.zip - (951 KB zip file)   Download     

  4.     Source Code:

    Download this Source Code at python file: PyAccesscon.py  - (311 byte python file)   download   

      Download this Source Code at txt file: PyAccesscon.txt  - (209 byte txt file)   download   
      Python Code, to Print Microsoft database Access, name = pic\Database1.accdb     -     (python file :PyAccesscon.py)


  5. Output : 
     Print Microsoft database Access, name = pic\Database1.accdb
     
      
     
     
   
4-  Python program, to Display a Supermarket management
 
  1. Python program, to Display a Supermarket management  - Using file to save the invoices
  2. Create a new Python project In Visual Studio 2022
    1. the Microsoft Visual Studio (... or 2019 or 2022) is a powerful IDE for Python language
    2. Open/Run Microsoft Visual Studio 2022
    3. To view Python templates, search for python.
       Select the Python Application template, and select Next.
    4. Create a new Python project In Visual Studio 2022
              On the Configure your new project screen  -   (specify a name and file location for the project, and then select Create)
              Project name: PythonSuperMarket
              Location: C:\Users\...\source\repos    (default location for
      Visual Studio 2022)
       


  3. The new project opens in Visual Studio 2022  - (Visual Studio 2022 Compiler - IDE, to compile Python project / file )
    1. The Visual Studio Solution Explorer window shows the project structure
    2. Python Project Properieties - PythonSuperMarket
      • Projct Folder: C:\Users\...\source\repos\PythonSuperMarket
      • Startup File: PythonSuperMarket.py
      • Project file: PythonSuperMarket.sln
    3. Download Python Project : PythonSuperMarket.zip - (39.8 KB zip file)   Download
    4. Project consist of:
       One Python Form - (PythonSuperMarket.py )

     

    Download Python Project : PythonSuperMarket.zip - (39.8 KB zip file)   Download     

  4.    Source Code:

      Download this Source Code at python file :PythonSuperMarket.py - (27.4 KB Python file)   download    

     Download this Source Code at txt file: PythonSuperMarket.txt  - (27.4 KB txt file)   download    

        Python Code, to display a Supermarket management    -     (Source Code at python file :PythonSuperMarket.py)

  5. Output :

    pic: default

     

    pic 1, invoice

     
   
 

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