Posts

Showing posts with the label Python Mysql Database For Beginners

Python Syntax

  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. Where in other programming languages the indentation in code is for readability only, the indentation in Python is very important. Python uses indentation to indicate a block of code. Python has no command for declaring a variable. You will learn more about variables in the  Python Variables  chapter. Comments Python has commenting capability for the purpose of in-code documentation. Comments start with a #, and Python will render the rest of the line as a comment:

Python Getting Started

  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 --version If you find that you do not have Python installed on your computer, then you can download it for free from the following website:  https://www.python.org/ Python Quickstart Python is an interpreted programming language, this means that as a developer you write Python (.py) files in a text editor and then put those files into the python interpreter to be executed. The way to run a python file is like this on the command line: C:\Users\ Your Name >python helloworld.py Where "helloworld.py" is the name of your python file. Let's write our first Python fi

Install WAMP server to run python , cgi-bin , PHP , scripts

Image
 Install WAMP + PYTHON Integration How to set up wamp to run Python programs and php on your own computer. SQL works also. Only tested on windows 10.All programs can be run through localhost in browser and files stored in www directory in wamp. Wamp Version 3.0.6 Python.3.9.1 Link to Python https://www.python.org/downloads/ Link to Wamp http://www.wampserver.com/en/download... Should be the same versions as mine in order to work. Make sure to save Python as C:\Python3.9.1 using custom installation. First line of your program must direct to where python.exe is installed. Mine is #!C:\Python3.9.1/python.exe .You must use parenthesis with print. Instructions: __________________________________________________________________ 1.Install wamp and python, make sure to remember the location where everything is installed.Mine are in 1 folder. 2.When both are installed, run wamp. 3.Go to wamp icon in tray, apache,httpd.conf. 4.Open the httpd.conf file. 5.In (Directoy /) change require all