Python

Learn Python Coding

Python is a software language that computer browsers can read just like you can read english.  The computer reads your python code and does what the code tells it to do.  Your computer does not know how to read English yet, but by learning ChatGBT it can understand Python and convert the code into English and perform tasks.  Python is being improved daily and you can learn the basics by keeping this PDF file open ===>>> https://help.uis.cam.ac.uk/system/files/documents/python3-notes.pdf

Here is a video to help you learn Python .... How to Learn Python FAST with ChatGPT? video = t.ly/KUTU

Learn more Python = https://docs.python.org/3/

Coursera Python Course = https://www.coursera.org/specializations/python?

Crash course on Python = https://ca.coursera.org/learn/python-crash-course

Google Automation IT = https://ca.coursera.org/professional-certificates/google-it-automation

The Python Package Index = https://pypi.org/

The Hitchhiker’s Guide to Python = https://docs.python-guide.org/

===== Example from t.ly/qANY  ========== 47

$ python        ##  $ python means "Run the Python interpreter"

Python 3.X.X (XXX, XXX XX XXXX, 03:41:42) [XXX] on XXX

Type "help", "copyright", "credits" or "license" for more information.

## makes a comment.  You can add ## then say what your code is trying to do.

 a = 'hi'    ## an 'a' is equal to what is between the 2 'quote' symbols.

>>> a

'hi'

>>> a = 6     ## set a variable that means a is equal to 6

>>> a           ## entering a variable then prints its value

6

## you are teaching your computer to read your python commands.

>>> 3 > prompts tells you about the version of python you're using and where it was built. 

As long as the first thing printed is "Python 3.", these examples should work for you.


>>> print('Hello, world!') ## notice print is all lower case & single quotation marks

Hello, world!  [ ]

 >>> len ('Hello,\nworld!') 13 ## including LEN asks how many letters in the string.

\n: ## slash N starts a new line.  Hello /n World

''' triple quote ''' ## allows free run sentence with no line breaks

>>> '''Hello, ... world''' ## 3 dots asking for more “secondary prompt"



##  quit() and exit(), but the simplest is the key sequence [Ctrl]+[D].  /N = new line

============= End Example ============== to be continued .....