CBT Nug - Python Programming

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

CBT Nuggets – Python Programming

Sublime ; editor
Cd _Ramon/Studie/Python ; working test directory

2 – Python Basics

www.python.org ; to download the latest version of python.

Python –version ; shows the python version

Python3 (ENTER) ; brings you to the interactive mode.


; the prompt changed to: >>>

Print(“Hello World!”)

Python FILENAME.py ; to run the python script.

3 – Variables

Print(“ INFORMATION “) ; the information we want to print.


= ; assignment operator
; assign value to a variable
Variables are used to store information in memory.
VARname = VARvalue

Variables types:
- Numeric ; no quotes.
- String
- List ;[]
- Tuple ;()
- Dictonary ;{}

You might also like