By: Ben Hester. What is Python Powerful Dynamic Programming Language Uses Whitespace Everything Is A Object Very Portable.

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 12 Introduction to ASP.NET.
Advertisements

JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Statement-Level Control Structures
CSI 3120, Exception handling, page 1 Exception and Event Handling Credits Robert W. Sebesta, Concepts of Programming Languages, 8 th ed., 2007 Dr. Nathalie.
George Blank University Lecturer. CS 602 Java and the Web Object Oriented Software Development Using Java Chapter 4.
ALGOL 60 Design by committee of computer scientists: Naur, Backus, Bauer, McCarthy, van Wijngaarden, Landin, etc. Design by committee of computer scientists:
Python By Steve Wright. What is Python? Simple, powerful, GP scripting language Simple, powerful, GP scripting language Object oriented Object oriented.
Ruby The Gem of new programming languages. An interpreted scripting language.
Introduction to Python. Outline Python IS ……. History Installation Data Structures Flow of Control Functions Modules References.
PHP Server-side Programming. PHP  PHP stands for PHP: Hypertext Preprocessor  PHP is interpreted  PHP code is embedded into HTML code  interpreter.
The Python Programming Language Matt Campbell | Steve Losh.
1 Exception and Event Handling (Based on:Concepts of Programming Languages, 8 th edition, by Robert W. Sebesta, 2007)
COBOL, LISP, and Python Joseph Hoeppner. COBOL Background  Released in 1959  Grace Hopper  Industry, universities, and government collaboration  Cold.
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 18 Topics: Intro to HTML/CSS: Questions? Summer Work Letter.
PL / SQL P rocedural L anguage / S tructured Q uery L anguage Chapter 7 in Lab Reference.
Sadegh Aliakbary Sharif University of Technology Spring 2011.
Chapter 13, Slide 1 Exception Handling Exception handling is a language feature that allows the programmer to handle runtime "exceptional conditions."
School of Computing and Information Systems CS 371 Web Application Programming PHP - Basics Serving up web pages.
Ruby! Useful as a scripting language – script: A small program meant for one time use – Targeted towards small to medium size projects Use by: – Amazon,
1 Python CIS*2450 Advanced Programming Concepts Material for this lecture was developed by Dr. D. Calvert.
The Python Programming Language Jeff Myers Programming Language Concepts, 01/14/2002
Programming Language C++ Xulong Peng CSC415 Programming Languages.
August 29, 2005ICP: Chapter 1: Introduction to Python Programming 1 Introduction to Computer Programming Chapter 1: Introduction to Python Programming.
CMPS 211 JavaScript Topic 1 JavaScript Syntax. 2Outline Goals and Objectives Goals and Objectives Chapter Headlines Chapter Headlines Introduction Introduction.
Array Cs212: DataStructures Lab 2. Array Group of contiguous memory locations Each memory location has same name Each memory location has same type a.
An Introduction to Python Blake Brogdon. What is Python?  Python is an interpreted, interactive, object-oriented programming language. (from python.org)
VB and C# Programming Basics. Overview Basic operations String processing Date processing Control structures Functions and subroutines.
Web Database Programming Week 3 PHP (2). Functions Group related statements together to serve “a” specific purpose –Avoid duplicated code –Easy maintenance.
Python – May 11 Briefing Course overview Introduction to the language Lab.
Ada How was Ada conceived. The language, not the lady.
Chapter 3 Functions, Events, and Control Structures JavaScript, Third Edition.
C463 / B551 Artificial Intelligence Dana Vrajitoru Python.
Control Structures sequence of execution of high-level statements.
Ch Ch jcmt CSE 3302 Programming Languages CSE3302 Programming Languages (notes, notes, notes) Dr. Carter Tiernan.
I Power Higher Computing Software Development High Level Language Constructs.
An Introduction. What is Python? Interpreted language Created by Guido Van Rossum – early 90s Named after Monty Python
ICS 313: Programming Language Theory Chapter 14: Exceptions.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
By Austin Laudenslager AN INTRODUCTION TO PYTHON.
Exceptions in C++. Exceptions  Exceptions provide a way to handle the errors generated by our programs by transferring control to functions called handlers.
How to execute Program structure Variables name, keywords, binding, scope, lifetime Data types – type system – primitives, strings, arrays, hashes – pointers/references.
INTRODUCTION CHAPTER #1 Visual Basic.NET. VB.Net General features It is an object oriented language  In the past VB had objects but focus was not placed.
1 PHP Intro PHP Introduction After this lecture, you should be able to: Know the fundamental concepts of Web Scripting Languages in general, PHP in particular.
Ada, Scheme, R Emory Wingard. Ada History Department of Defense in search of high level language around Requirements drafted for the language.
Unit – 3 Control structures. Condition Statements 1.If.…..else :- Has someone ever told you, "if you work hard, then you will succeed"? And what happens.
Euphoria Programming Language CSC 507 Kasilingam Vimalan.
Python Programming Language by Vasu Chetty. Origins of Python Created by: Guido van Rossum, a Dutch Programmer Created during: Christmas Break, 1989 Created.
Quiz 1 A sample quiz 1 is linked to the grading page on the course web site. Everything up to and including this Friday’s lecture except that conditionals.
Preface IIntroduction Course Objectives I-2 Oracle Complete Solution I-3 Course Agenda I-4 Tables Used in This Course I-5 The Order Entry Schema I-6 The.
CSCE 343 – Programming Language Concepts Welcome!.
Review for Test2. Scope 8 problems, 60 points. 1 Bonus problem (5 points) Coverage: – Test 1 coverage – Exception Handling, Switch Statement – Array of.
PYTHON PROGRAMMING LANGUAGE.
Exception and Event Handling
C++, OBJECT ORIENTED PROGRAMMING
Chapter 8: Control Structures
Repeating code We could repeat code we need more than once: i = 1 print (i) i += 1 print (i) #… stop when i == 9 But each line means an extra line we might.
Chapter 19 JavaScript.
Introduction to Python
An Introduction to Java – Part I, language basics
Final Review In Text: Chapters 1-3, 5-12,
Final Review In Text: Chapters 1-3, 5-16.
Final Review In Text: Chapters 1-3, 5-16.
Statement-Level Control Structures
Exception Handling and Event Handling
Subject : T0152 – Programming Language Concept
CS 1111 Introduction to Programming Spring 2019
Exception and Event Handling
Final Review In Text: Chapters 1-3, 5-16.
Exception Handling and Event Handling
Python Basics. Topics Features How does Python work Basic Features I/O in Python Operators Control Statements Function/Scope of variables OOP Concepts.
Presentation transcript:

By: Ben Hester

What is Python Powerful Dynamic Programming Language Uses Whitespace Everything Is A Object Very Portable

History of Python Created By Guido Van Rossum An improvement on ABC Open Source and Community Supported

Basics Case Sensitive Unlimited Integers Arrays can contain elements of different types Arrays can be broken into slices Can be expanded with C or C++

No GOTO

Control Structures Supports Nested If- Statements Does NOT support Switch Statements Has a different way of doing FOR loops

Default FOR loop Works similar to a For-Each loop Ex: for w in "Cat": print(w) OUTPUT :C a t

FOR Loops Java Python for(int i = 5; i < 10; i++) System.out.printf("%d\n", i); OUTPUT: for i in range(5, 10): print(i) OUTPUT:

If it looks like a duck….

Duck Typing Python is a Dynamically Typed Language Duck Typing is a subset of dynamic typing In Python, methods don’t care what is passed as long as it works

Subprograms Every function in Python returns a value Supports keyword parameters Allows for nested subprograms

Concurrency Python supports concurrency Since Python is interpreted, it can only handle logical concurrency

Error and Event Handling Extensive Exception handling features Users can create their own errors through class objects Python doesn’t have native event handlers

Sources Beazley, David. "An Introduction to Python Concurrency." An Introduction to Python Concurrency. USENIX Technical Conference, June Web. 20 Nov "Learnpython.org." Learn Python. Learnpython.org, n.d. Web. 01 Oct Lott, Steven. "Python - Raising Exceptions." Python - Raising Exceptions. Linuxtopia.org, Web. 20 Nov "Python V3.3.0 Documentation." Overview. Python Software Foundation, n.d. Web. 01 Oct Sebesta, Robert W. Concepts of Programming Languages. Boston: Pearson, Print. Shaw, Zed A. "Learn Python The Hard Way, 2nd Edition." Learn Python The Hard Way, 2nd Edition — Learn Python The Hard Way, 2nd Edition. N.p., n.d. Web. 01 Oct Swaroop, CH. A Byte of Python. Vol N.p.: n.p., Print. Vrajitoru, Dana. "C311 Name, Scope, Binding." C311 Name, Scope, Binding. IUSB, n.d. Web. 01 Oct