pythonLesson1.pdf

Full Transcript

IT 403 Elective 5 (Web Systems and Technologies 3) Lesson 1: Introduction to Python and Learn VS Code Instructor: Genalyn D. Villafuerte What is Python? Open source programming language was created by Guido van Rossum Python 1.0 was released in 1991, Python 2.0 in 2000...

IT 403 Elective 5 (Web Systems and Technologies 3) Lesson 1: Introduction to Python and Learn VS Code Instructor: Genalyn D. Villafuerte What is Python? Open source programming language was created by Guido van Rossum Python 1.0 was released in 1991, Python 2.0 in 2000 – an older version of the original Python Python 3.0 in 2008 – the current version of the language, a completely different language Characteristics of Python A High-Level Language Supports Object-Oriented Programming (OOP) A General-Purpose Language An Interpreted Language Dynamically-Typed Programs are Platform-Independent Why Use Python? Easy to understand Can create the following ○ Server and Web Applications ○ Script for Vulnerability Testing ○ Data Science and Data Visualization ○ Machine Learning ○ Data Analytics ○ Programming Applications ○ Game Development ○ Language Development To set up Python development environment 1. Python 3 Interpreter (https://www.python.org/downloads/) 2. Text Editor or IDLE (Python's Integrated Development and Learning Environment) ○ PyCharm, ○ Visual Studio (VS) Code (https://code.visualstudio.com/), ○ Sublime, or ○ Anaconda 3. VS Code Python Extension 1. Python 3 Interpreter Installation Click the Download Python 3.12.5 button. 1. Python 3 Interpreter Installation Click the installer Upon installation, check Add python.exe to PATH 1. Python 3 Interpreter Installation OR 2. Create a Python file using a Text Editor Open Notepad Type the Python syntax and save it as helloworld.py Execute via Command Prompt in Windows 2. Create a Python file using Python’s IDLE: VS Code Click the Download for Windows button. 2. VS Code Installation Click the installer After installation, open the VS Code. 3. VS Code Python Extension Installation Open the Extensions tab and type Python in the Search box. Make sure Python and Python Debugger extensions are installed. Create a Python file using VS Code Create and open a project folder. Create a new file File > New File… and name it as helloworld.py Type the Python syntax Execute by clicking the Run Code button Python Interpreter for Mobile Install Pydroid 3 in Google Play Store Indentation Python uses indentation to indicate code block. if a == 1: print("Yes") Comments Python as commenting capability for the purpose of in-code documentation.

Use Quizgecko on...
Browser
Browser