BSc in Digital Media, PSUIC

Slides:



Advertisements
Similar presentations
COMPUTER PROGRAMMING Task 1 LEVEL 6 PROGRAMMING: Be able to use a text based language like Python and JavaScript & correctly use procedures and functions.
Advertisements

Click Here for Download the Installation Files Click Here for Guide How to Extract Installation Files.
Creating a Program In today’s lesson we will look at: what programming is different types of programs how we create a program installing an IDE to get.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
How to install the Zelle graphics package
The Online Guide to Creating Podcasts Presented by The Portland Public Schools Multimedia Library Downloading and Installing the Software.
PYTHON: LESSON 1 Catherine and Annie. WHAT IS PYTHON ANYWAY?  Python is a programming language.  But what’s a programming language?  It’s a language.
Chapter 1: Python Basics CSCI-UA 0002 – Introduction to Computer Programming Mr. Joel Kemp.
Agenda What is Computer Programming? The Programming Process
What is GAMS?.
Streaming Twitter. Install pycurl library Use a lab computer From the course website Download the links from pycurl and twitter streamer Extract site-packages.zip,
Higher Grade Computing Studies 2. Languages and Environments Higher Computing Software Development S. McCrossan 1 Classification of Languages 1. Procedural.
Move Pictures From Your Mobile Phone to Your PC.  You never know when a photo opportunity is going to arise, which is why having a camera phone can be.
Introduction to Computational Linguistics Programming I.
Python From the book “Think Python”
How to Download Sermons from the LBC Sermon Website To Download or to listen then please follow the instructions in the boxes (similar to this one) that.
Open a editor Write/Type the program Save the program with “.c” extension Compile the program (alt + F9) Run/Execute the program (ctrl + F9) Check the.
Uninstall any Existing versions of ArcMap Before starting, ensure there are not existing versions of ArcMap on your computer Use the Uninstall option on.
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Programming for GCSE 1.0 Beginning with Python T eaching L ondon C omputing Margaret Derrington KCL Easter 2014.
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
You Need an Interpreter!. Closing the GAP Thus far, we’ve been struggling to speak to computers in “their” language, maybe its time we spoke to them in.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
ENDNOTE Installation Guide. E ENDNOTE ON LIBRARY PAGE ( Scroll down to see download instructions.
Installing NVU A full-featured web page editor. NVU has two great virtues: 1. It’s good 2. Its’ free!
Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”
1. Starting 1 Let’s Learn Saenthong School, January – February 2016 Teacher: Aj. Andrew Davison, CoE, PSU Hat Yai Campus
we are going to write our Assembly language program as sample ex01.asm. So that we can attempt our assigment.
PROBLEM SOLVING WARM-UP Fill in the spaces using any operation to solve the following (!, (), -/+,÷,×): = 6.
4. If Statements 1 Have your program make choices. Depending on a test have a program do different things Computer Programming BSc in Digital.
Trend Micro Support for Installing the Latest Version Security 2016.
How To Silent-Install The AVG Antivirus 2017 Using The DOS Command.
After Construction Name: Per #:.
Let’s Learn 12. Packaging a Game Saengthong School, June – August 2016
First Day in Lab Making a C++ program
Development Environment
CST 1101 Problem Solving Using Computers
CS1010: Intro Workshop.
Technology Staff Development, April 2011
Whatcha doin'? Aims: To start using Python. To understand loops.
A Playful Introduction to Programming by Jason R. Briggs
Let’s Learn 2. Installing Pygame
How to fix “OMCDetect” error while using OverDrive for Windows 8 and 7
Guide To UNIX Using Linux Third Edition
How to Fix Boot Error 0xc000000e on Windows
Basic operations in Matlab
Fix Avast Antivirus Error Call
Howto fix Boot Device Not Found Error or Hard Drive Not Detected on HP PC’s? How to fix Boot Device Not Found Error or Hard Drive Not Detected on HP PC’s?
Week 1 Gates Introduction to Information Technology cosc 010 Week 1 Gates
How to Install an old version of Adobe Reader on Mac OS.
office.com/setup installation and Activation
office.com/setup download,installation and Activation support guide
What are variables? Using input()
TRANSLATORS AND IDEs Key Revision Points.
Let's Learn Python and Pygame
Today’s lesson – Python next steps
Week 1 Computer Programming Year 9 – Unit 9.04
8. Starting Pygame Let's Learn Python and Pygame
Task 1 Computer Programming LEVEL 6 PROGRAMMING:
Digital Image Processing
What are variables? Using input()
Introduction In today’s lesson we will look at: why Python?
MADE IN USA KEY QUOTE TOOL.
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
What are variables? Using input()
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Visual Basic for Applications: Introduction
Programming for Business Computing Introduction
Presentation transcript:

142-253 Computer Programming BSc in Digital Media, PSUIC Aj. Andrew Davison, CoE, PSU Hat Yai Campus E-mail: ad@fivedots.coe.psu.ac.th 1. Starting

0. Computers and Programs A computer is a machine that stores data. A program is a set of instructions that tells a computer what to do with the data.

Why Learn to Program? Makes you a clever user of computers It's fun! You make stuff (programs) that do things Helps you learn problem solving skills Programmers get jobs

Why Learn Python? The Python programming language is aimed at beginners It's easy to learn and use Powerful Lots of program libraries Free Runs on everything Lots of users; lots of help online Used in the real world

1. Installing Python on your PC 1. Go to the Python webpage 2. Download version 3.5.1 (or higher) 3. Wait a while ... 4. Start Installer 5. Click PATH and press "Install Now" 6. Click "Close" at end 7. Check the Menu for Python

Python Webpage http://www.python.org click here

Python Download Page click here

Wait for Installer to Appear on your PC

Start Installer click here

Click PATH & Press "Install Now"

Setup in Progress

Press Close at End of Installer

Check the Menu for Python

2. Starting Python There are lots of ways of starting Python from the Python menu, start IDLE (a Python editor) from the Python menu, start Python start Python from the Windows command line (2) and (3) start the same Python The easiest

2.1. Start IDLE (a Python editor)

Inside IDLE I typed help() and <enter> to start "help" I typed quit to leave "help" but still be in IDLE

Get Python to do Things I typed these and <enter>

Some Math Operations no fraction part remainder 2 to the power 5 no fraction part and ( ... ) around the maths, if you want

Some Maths to Try

Leaving IDLE and Python

Other Ways to Leave IDLE >>> exit() Any one of these >>> quit() There are various ways to quit interactive Python. There are two commands which are equivalent for our purposes: quit() and exit(), but the simplest is the key sequence [Ctrl]+[D]. >>> Ctrl D +

2.2. Start Python (but no editor)

Inside Python I typed help() and <enter> to start "help" I typed quit to leave "help" but still be in Python I typed ctrl-Z and <enter> to leave Python

Start Python from Windows Command Line Start Windows "Command Prompt" program

2.3. Start Python in the Command Window I typed python and <enter> to start "python"

Leaving Python in the Command Window I typed help() and <enter> to start "help" I typed quit to leave "help" but still be in Python I typed ctrl-Z and <enter> to leave Python but still be in the Command Window

3. Programming with Python in IDLE

4. Writing a Python Program 1. Start IDLE 2. Create a new program file 3. Write a Python program into the file 4. Save the program file. give the file a name, e.g. test1 5. Check the file is on your PC

Create a new Program File

Write a Program into the File

Save the program file

Type in a File name I'm saving the file as "test1" on the Desktop

Check the file is on your PC The file is called "test1.py" on the Desktop

5. Running your Program Two ways: run your program inside IDLE run your program in the Command Window

5.1. Running your Program in IDLE

Open (Load) test1.py

Run the program using "Run Module" (F5)

Python Runs (Executes) your Program

5.2. Run from the Command Prompt I typed cd Desktop to move to the desktop This is the program running. I typed python test1.py to run the program

6. Python Documentation (docs)

Or from Help in IDLE

The First Doc Page