CST 1101 Problem Solving Using Computers

Slides:



Advertisements
Similar presentations
In Review JAVA C++ GUIs - Windows Webopedia.com.
Advertisements

Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)
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 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
1 Integrated Development Environment Building Your First Project (A Step-By-Step Approach)
Introduction to Python Dr. Bernard Chen Ph.D. University of Central Arkansas July 9 th 2012
Ch 1. Introduction Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2012.
1 Programming Concepts Module Code : CMV6107 Class Contact Hours: 45 hours (Lecture 15 hours) (Laboratory/Tutorial 30 hours) Module Value: 1 Textbook:
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
 We are going to learn about programming in general…How to think logically and problem solve. The programming language we will use is Python. This is.
August 29, 2005ICP: Chapter 1: Introduction to Python Programming 1 Introduction to Computer Programming Chapter 1: Introduction to Python Programming.
Python From the book “Think Python”
Ch 1. A Python Q&A Session Spring Why do people use Python? Software quality Developer productivity Program portability Support libraries Component.
Discovering Computers 2009 Chapter 13 Programming Languages and Program Development.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
CHAPTER TWO INTRODUCTION TO VISUAL BASIC © Prepared By: Razif Razali 1.
XP Tutorial 10New Perspectives on HTML and XHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties Tutorial.
Getting started with Programming using IDE. JAVA JAVA IS A PROGRAMMING LANGUAGE AND A PLATFORM. IT CAN BE USED TO DELIVER AND RUN HIGHLY INTERACTIVE DYNAMIC.
Copyright © Mohamed Nuzrath Java Programming :: Syllabus & Chapters :: Prepared & Presented By :: Mohamed Nuzrath [ Major In Programming ] NCC Programme.
JAVA Programming “When you are willing to make sacrifices for a great cause, you will never be alone.” Instructor: รัฐภูมิ เถื่อนถนอม
OCR Computing GCSE © Hodder Education 2013 Slide 1 OCR GCSE Computing Python programming 4: Writing programs.
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.
ECET – Dynamic Programming with Python Spring 2013 Lecture L1 – Introduction to Python Page 1 Welcome! This is Professor Jai P. Agrawal. I will walk.
Ch 1. A Python Q&A Session. Why do people use Python? Software Quality Developer productivity Program portability Support Libraries Component integration.
 Programming - the process of creating computer programs.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Introducing Python 3 Introduction to Python. Introduction to Python L1 Introducing Python 3 Learning Objectives Know what Python is and some of the applications.
PROBLEM SOLVING WARM-UP Fill in the spaces using any operation to solve the following (!, (), -/+,÷,×): = 6.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
CSC 222: Object-Oriented Programming
Introducing Python Introduction to Python.
Python Programming Unit -1.
Introduction to Perl: Practical extraction and report language
Development Environment
14 Compilers, Interpreters and Debuggers
A Playful Introduction to Programming by Jason R. Briggs
Done By: Ashlee Lizarraga Ricky Usher Jacinto Roches Eli Gomez
CSCI-235 Micro-Computer Applications
Key Ideas from day 1 slides
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Computer Software: Programming
Introduction to Python
PYTHON: AN INTRODUCTION
Text by: Lambert and Osborne
Ch 1. A Python Q&A Session Bernard Chen 2007.
Guide To UNIX Using Linux Third Edition
1. Introduction to Visual Basic
Application Development Theory
SVTRAININGS. SVTRAININGS Python Overview  Python is a high-level, interpreted, interactive and object-oriented scripting language. Python is designed.
Do you know this browser?...
Let's Learn Python and Pygame
How to enter the world of Python Programming for ArcGIS
Social Media And Global Computing Introduction to Visual Studio
Week 1 Computer Programming Year 9 – Unit 9.04
Understanding the Visual IDE
BSc in Digital Media, PSUIC
CS 1111 Introduction to Programming Spring 2019
12th Computer Science – Unit 5
Chapter 1: Programming Basics, Python History and Program Components
Microsoft Office Illustrated Fundamentals
Computer Programming-1 CSC 111
Introduction to JavaScript
The Python interpreter
Web Application Development Using PHP
Introduction to Computer Science
PYTHON - VARIABLES AND OPERATORS
Presentation transcript:

CST 1101 Problem Solving Using Computers

CST 1101 Topic 02: “Hello World”

What Makes Learning Python Important? Python lets you work quickly to integrate systems as a scripting or glue language. It’s also suited for Rapid Application Develop (RAD). The game Civilization 4 has all its inner logic, including AI, implemented in Python. NASA uses Python in its Integrated Planning System as a standard scripting language. Features: Simple to learn and easily read Associated web frameworks for developing web-based applications Free interpreter and standard library available in source or binary on major platforms

Who Uses Python? Professions and Industries: Python developers, software engineers, back end developers, Python programmers Used by employers in information technology, engineering, professional services and design Major Organizations: Google, Pinterest, Instagram, YouTube, DropBox, NASA, ESRI Specializations and Industries: Web and Internet development (frameworks, micro-frameworks and advanced content management systems); scientific and numeric computing; desktop graphical user interfaces (GUIs)

Why Python? Python is a scripting language : Free Portable dynamically-typed object-oriented Python Combines software engineering features of traditional systems languages with power and flexibility of scripting languages.

Traditional vs Scripting Languages Traditional languages (C++, Java) evolved for large-scale programming Emphasis on structure and discipline Simple problems != simple programs Scripting languages (Perl, Python, TCL) designed for simplicity and flexibility. Simple problems = simple, elegant solutions More amenable to experimentation and incremental development Python: Ideal first language, useful throughout curriculum (Information and Data Management, Data Mining)

Running Python Programs Hybrid compiled/interpreted architecture We will use Integrated Development Learning Environment (IDLE), an integrated development environment for Python and Python 3.6 Options: Start Interpreter from command line (>>> ) Type program statements Import script file Directly from IDLE

Download IDLE and Python https://www.python.org/downloads/

IDLE A quick way to launch IDLE is from Window’s Start Menu  choose IDLE (Python GUI) If you use Windows 10, see the example For Windows 7 or Vista see the example in the HowToStartIDLE.pdf tutorial

IDLE Shell Put the statement that you want to be displayed on the screen in double quotes. This is a String type that we will discuss later.

>>>help() command starts interactive help Ctrl-C command exits interactive help Interactive help for the if operator

Creating and Running a Python program To create a new Python program, choose File  New File to open a text editor window A new window will be open for editing To save do File  Save as To run do Run  Run module or click F5

Saving file If the file that you try to run does not have all the recent updates you will see the following window. Click OK, follow the prompt and save your work

Comments Comments improve code readability and documentation Comments are not executed by a computer (a compiler skips them): Comments are for programmers and users Comments are not for computers

Comments Start comments with # – the rest of line is ignored. Can include a “documentation string” as the first line of any new function or class that you define. The development environment, debugger, and other tools use it: it’s good style to document your code with comments.

Using Python Shell as a Calculator