0% found this document useful (0 votes)
88 views2 pages

CBT Nug - Python Programming

The document provides an overview of Python programming basics including setting up a working directory in Sublime text editor, downloading and checking the Python version, running code in interactive mode and from scripts, and introducing variable types like numeric, string, list, tuple, and dictionary that are used to store and assign values in memory.

Uploaded by

Ramon Pirbux
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
88 views2 pages

CBT Nug - Python Programming

The document provides an overview of Python programming basics including setting up a working directory in Sublime text editor, downloading and checking the Python version, running code in interactive mode and from scripts, and introducing variable types like numeric, string, list, tuple, and dictionary that are used to store and assign values in memory.

Uploaded by

Ramon Pirbux
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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