Rafed's Blog

  • Home
  • Blog
    Posts Sections
    Tags
  • About

Python Tutorial - (Page 1/1)

Chapter 1

Chapter 1

This is Chapter 1. Python Getting Started Python Install Many PCs and Macs will have python already installed. To check if you have python installed on a Windows PC, search in the start bar for Python or run the following on the Command Line (cmd.exe): C:\Users\Your Name>python --version To check if you have python installed on a Linux or Mac, then on linux open the command line or on Mac open the Terminal and type:

python
Chapter 2

Chapter 2

This is Chapter 2. Python Syntax Python Syntax Execute Python Syntax As we learned in the previous page, Python syntax can be executed by writing directly in the Command Line: >>> print("Hello, World!") Hello, World! Or by creating a python file on the server, using the .py file extension, and running it in the Command Line: C:\Users\Your Name>python myfile.py Python Indentation Indentation refers to the spaces at the beginning of a code line.

python

© 2025 Rafed Muhammad Yasir. BlogRa theme for Hugo .