Course Outline - COMP150. Lectures and Labs

Similar documents
Al al-bayt University Prince Hussein Bin Abdullah College for Information Technology Computer Science Department

Introduction to Python

PYTHON CONTENT NOTE: Almost every task is explained with an example

GE PROBLEM SOVING AND PYTHON PROGRAMMING. Question Bank UNIT 1 - ALGORITHMIC PROBLEM SOLVING

[CHAPTER] 1 INTRODUCTION 1

Introduction to Programming Using Java (98-388)

PYTHON TRAINING COURSE CONTENT

GIS 4653/5653: Spatial Programming and GIS. More Python: Statements, Types, Functions, Modules, Classes

Part III Appendices 165

Python INTRODUCTION: Understanding the Open source Installation of python in Linux/windows. Understanding Interpreters * ipython.

Python Training. Complete Practical & Real-time Trainings. A Unit of SequelGate Innovative Technologies Pvt. Ltd.

Basic Python 3 Programming (Theory & Practical)

Glossary. For Introduction to Programming Using Python By Y. Daniel Liang

Python Basics. Lecture and Lab 5 Day Course. Python Basics

Python Scripting for Computational Science

Webgurukul Programming Language Course

ENGR 102 Engineering Lab I - Computation

PTN-202: Advanced Python Programming Course Description. Course Outline

Unit 2. Srinidhi H Asst Professor

Python Scripting for Computational Science

Table of Contents. Preface... xxi

Computer Hardware 6. The

Lists. There are several ways to create a new list; the simplest is to enclose the elements in square brackets ( [ and ]):

PTN-102 Python programming

Index. object lifetimes, and ownership, use after change by an alias errors, use after drop errors, BTreeMap, 309

Interactive use. $ python. >>> print 'Hello, world!' Hello, world! >>> 3 $ Ctrl-D

Interactive use. $ python. >>> print 'Hello, world!' Hello, world! >>> 3 $ Ctrl-D

VALLIAMMAI ENGINEERING COLLEGE

Fundamentals of Programming (Python) Object-Oriented Programming. Ali Taheri Sharif University of Technology Spring 2018

Discover how to get up and running with the Java Development Environment and with the Eclipse IDE to create Java programs.

DM550/DM857 Introduction to Programming. Peter Schneider-Kamp

MEIN 50010: Python Introduction

About Python. Python Duration. Training Objectives. Training Pre - Requisites & Who Should Learn Python

[Course Overview] After completing this module you are ready to: Develop Desktop applications, Networking & Multi-threaded programs in java.

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

Training with Certification

STUDENT OUTLINE. Lesson 8: Structured Programming, Control Structures, if-else Statements, Pseudocode

Worksheet 6: Basic Methods Methods The Format Method Formatting Floats Formatting Different Types Formatting Keywords

PRG PROGRAMMING ESSENTIALS. Lecture 2 Program flow, Conditionals, Loops

Introduction to Computer Science with Python Course Syllabus

Programming in Python Advanced

Absolute C++ Walter Savitch

PREPARING FOR PRELIM 1

Level 3 Computing Year 2 Lecturer: Phil Smith

Course Title: Python + Django for Web Application

COMP1730/COMP6730 Programming for Scientists. Sequence types, part 2

Data Structures and Abstractions with Java

CS 102 Lab 3 Fall 2012

Python Review IPRE

Iteration and For Loops

,

Accelerating Information Technology Innovation

CSE : Python Programming

This course is designed for anyone who needs to learn how to write programs in Python.

Fundamentals of Python: First Programs. Chapter 4: Strings and Text Files

Problem 1 (a): List Operations

Introduction to Python

Announcements for this Lecture

CIS192: Python Programming

CS 11 python track: lecture 3. n Today: Useful coding idioms

CS 349 / SE 382 Scripting. Professor Michael Terry March 18, 2009

Introduction to Python

Introduction to Python: Data types. HORT Lecture 8 Instructor: Kranthi Varala

ECS15, Lecture 13. Midterm solutions posted. Topic 4: Programming in Python, cont. Staying up to speed with Python RESOURCES. More Python Resources

COMP1730/COMP6730 Programming for Scientists. Strings

Here n is a variable name. The value of that variable is 176.

a name refers to an object side effect of assigning composite objects

Python Input, output and variables. Lecture 23 COMPSCI111/111G SS 2018

CMSC201 Computer Science I for Majors

Programming for Engineers in Python

Complete Python call :

Chapter 1 Summary. Chapter 2 Summary. end of a string, in which case the string can span multiple lines.

Introduction to Python - Part I CNV Lab

S206E Lecture 19, 5/24/2016, Python an overview

CE151 ASSIGNMENT

CS Introduction to Computational and Data Science. Instructor: Renzhi Cao Computer Science Department Pacific Lutheran University Spring 2017

\n is used in a string to indicate the newline character. An expression produces data. The simplest expression

Compound Data Types 1

CS1 Lecture 12 Feb. 11, 2019

Outline. 1 If Statement. 2 While Statement. 3 For Statement. 4 Nesting. 5 Applications. 6 Other Conditional and Loop Constructs 2 / 19

(CC)A-NC 2.5 by Randall Munroe Python

The second statement selects character number 1 from and assigns it to.

Mathematics/Science Department Kirkwood Community College. Course Syllabus. Computer Science CSC142 1/10

Collections. Michael Ernst CSE 190p University of Washington

PTN-105 Python programming. Course Outline. Prerequisite: basic Linux/UNIX and programming skills. Delivery Method: Instructor-led training (ILT)

ECE 364 Software Engineering Tools Lab. Lecture 3 Python: Introduction

Programming for Data Science Syllabus

Introduction to Programming

The Practice of Computing Using PYTHON

Contents Computing with Formulas

Welcome to CSC148! Introduction to Computer Science

Part I Basic Concepts 1

Introduction to Python for IBM i

CS2304: Python for Java Programmers. CS2304: Sequences and Collections

Lesson 4: Type Conversion, Mutability, Sequence Indexing. Fundamentals of Text Processing for Linguists Na-Rae Han

^l^s^^^^^^^^^^s^^^ ^.1^L^ gs *^gs (s^s^^^^s^^ ^S^^^^ls

CS61A Lecture 16. Amir Kamil UC Berkeley February 27, 2013

Lists, Tuples and Dictionaries. HORT Lecture 10 Instructor: Kranthi Varala

CS61A Lecture 16. Amir Kamil UC Berkeley February 27, 2013

Advanced Algorithms and Computational Models (module A)

Transcription:

Course Outline - COMP150 Lectures and Labs 1 The way of the program 1.1 The Python programming language 1.2 What is a program? 1.3 What is debugging? 1.4 Experimental debugging 1.5 Formal and natural languages 1.6 The first program 1.7 Glossary 1.8 The COMP150 lab 1.8.1 Logging-on 1.8.2 The OSX desktop 1.8.3 Menus 1.8.4 The dock 1.8.5 The Finder window 1.8.6 Your home directory 1.8.7 Applications 1.8.8 IDLE 1.8.9 Getting help 1.8.10 Coursework files 1.8.11 Terms requirements 1.9 Blackboard 1.10 Laboratory exercises 2 Variables, expressions and statements 2.1 Values and types 2.2 Variables 2.3 Variable names and keywords 2.4 Statements 2.5 Evaluating expressions 2.6 Operators and operands 2.7 The modulus operator 2.8 Order of operations 2.9 Operations on strings 2.10 Glossary 2.11 Laboratory exercises 3 Functions: part 1 3.1 Composing expressions 3.2 Function calls 3.3 Function definitions and use 3.4 Flow of execution 3.5 Parameters and arguments 3.6 Function composition 3.7 Comments 3.8 Glossary 3.9 Laboratory exercises 4 Functions: part 2 4.1 Variables and parameters are local 4.2 Stack diagrams 4.3 Input 4.4 Type conversion 4.5 Glossary 4.6 Laboratory exercises

5 Conditionals 5.1 Conditional execution 5.2 Boolean values and expressions 5.3 Logical operators 5.4 Alternative execution 5.5 Chained conditionals 5.6 Nested conditionals 5.7 Booleans and type conversion 5.8 Glossary 5.9 Laboratory exercises 6 Fruitful functions 6.1 The return statement 6.2 Return values 6.3 Program development 6.4 Composition 6.5 Boolean functions 6.6 Glossary 6.7 Laboratory exercises 7 Modules and TDD 7.1 Modules, files and the import statement 7.2 Triple quoted strings 7.3 Unit testing with doctest 7.4 Good Practice Development 7.5 Test-driven development demonstrated 7.6 Programming with style 7.7 Glossary 7.8 Laboratory exercises 8 Strings part 1 8.1 A compound data type 8.2 Length 8.3 String slices 8.4 String comparison 8.5 Strings are immutable 8.6 Traversal and the for loop 8.7 The in operator 8.8 Looping and counting 8.9 str Methods 8.10 Glossary 8.11 Laboratory exercises 9 Files and modules 9.1 Files 9.2 Processing things from a file 9.3 Directories 9.4 Files as a Unifying Concept 9.5 Glossary 9.6 Laboratory exercises 10 Iteration: part 1 10.1 Multiple assignment 10.2 Updating variables 10.3 Abbreviated assignment 10.4 The while statement 10.5 Tracing a program

10.6 Counting digits 10.7 Tables 10.8 Glossary 10.9 Laboratory exercises 11 Iteration: part 2 11.1 Two-dimensional tables 11.2 Encapsulation and generalization 11.3 More encapsulation 11.4 Local variables 11.5 More generalization 11.6 Functions 11.7 Newton s method 11.8 Algorithms 11.9 Glossary 11.10 Laboratory Exercises 12 Strings part 2 12.1 String formatting 12.2 Character classification 12.3 A find function 12.4 Optional parameters 12.5 Glossary 12.6 Laboratory exercises 13 Lists part 1 13.1 List values 13.2 Accessing elements 13.3 List length 13.4 The range function 13.5 Lists and for loops 13.6 List membership 13.7 List operations 13.8 List slices 13.9 Lists are mutable 13.10 List deletion 13.11 Glossary 13.12 Laboratory exercises 14 Lists part 2 14.1 Objects and values 14.2 Aliasing 14.3 Cloning lists 14.4 List parameters 14.5 Pure functions and modifiers 14.6 Which is better? 14.7 Nested lists 14.8 Matrices 14.9 Strings and lists 14.10 Glossary 14.11 Laboratory exercises 15 Tuples, Sets and Dictionaries 15.1 Tuples and mutability 15.2 Tuple assignment 15.3 Tuples as return values 15.4 Why tuples?

15.5 When should you use tuples? 15.6 Sets 15.7 Dictionaries 15.8 Dictionary operations 15.9 Dictionary methods 15.10 Aliasing and copying 15.11 Counting letters 15.12 Glossary 15.13 Laboratory exercises 16 No Lecture Today 16.1 No Lab This Session 17 Classes and objects - Part 1 17.1 Object-oriented programming 17.2 User-defined compound types 17.3 The init Method and self 17.4 Attributes 17.5 Methods 17.6 Sameness 17.7 Interface and Representation 17.8 Glossary 17.9 Laboratory exercises 18 Classes and objects - Part 2 18.1 Rectangles 18.2 Instances as return values 18.3 Objects are mutable 18.4 Copying 18.5 A Polygon Class 18.6 Glossary 18.7 Laboratory exercises 19 Graphical user interface programming 19.1 Event driven programming 19.2 TkInter introduction 19.3 Introducing callbacks 19.4 User input 19.5 Mini-case study 19.6 Glossary 19.7 Laboratory exercises 20 Case study: Catch 20.1 Graphics 20.2 Moving the ball 20.3 Adding randomness 20.4 Glossary 20.5 Laboratory exercises 21 Case study: Catch continued 21.1 Keyboard input 21.2 Checking for collisions 21.3 Keeping score 21.4 Glossary 21.5 Laboratory exercises 21.6 Optional extension project: pong.py 22 System programming

22.1 The sys module and argv 22.2 The os and glob module 22.3 A mini-case study 22.3.1 ImageMagick 22.3.2 Scripting ImageMagick 22.4 Glossary 22.5 Laboratory exercises 23 Case study 2 Part 1 23.1 Program Design 23.2 The Initial Program 23.3 Opening a File 23.4 Saving to a File 23.5 Adding a Command Bar 23.6 Laboratory Exercises 24 Case study 2 Part 2 24.1 Encrypting the Contents 24.2 Putting it All Together 24.3 Glossary 24.4 Laboratory Exercises 25 The last lecture 25.1 Stuff we haven t covered 25.2 What you can expect from COMP160 and Computer Science