V2012.13. 2 Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 18 Topics: Intro to HTML/CSS: Questions? Summer Work Letter.

Slides:



Advertisements
Similar presentations
C Language.
Advertisements

Intro to Python Welcome to the Wonderful world of GIS programing!
V Avon High School Tech Club Agenda Old Business –Executive Committee –LCCUG meeting volunteer(s) –Reward Points Program New Business –Weekly.
The Web Warrior Guide to Web Design Technologies
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 15 Topics: SPARC Announcement Intro to HTML/CSS –Questions?
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 14 Web Database Programming Using PHP.
Introduction to Python. Outline Python IS ……. History Installation Data Structures Flow of Control Functions Modules References.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Programming 101 with Python: an open-source, cross-platform, and fun language By J. Burton Browning, Ed.D. Copyright © J. Burton Browning All rights reserved.
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 16 Topics: Intro to HTML/CSS –Questions? Tech Club Forums.
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 19 Topics: Intro to HTML/CSS: Questions? Group Executive Committee.
CS346 - Javascript 1, 21 Module 1 Introduction to JavaScript CS346.
Nael Alian Introduction to PHP
1 Python CIS*2450 Advanced Programming Concepts Material for this lecture was developed by Dr. D. Calvert.
1 CSC 221: Introduction to Programming Fall 2012 Functions & Modules  standard modules: math, random  Python documentation, help  user-defined functions,
Copyright © 2015 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 5 Functions.
Python – Part 1 Python Programming Language 1. What is Python? High-level language Interpreted – easy to test and use interactively Object-oriented Open-source.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Intro to Python Adriane Huber Debbie Bartlett Python Lab #1Python Lab #1 1.
Introduction to PHP Advanced Database System Lab no.1.
Introducing Python CS 4320, SPRING Resources We will be following the Python tutorialPython tutorial These notes will cover the following sections.
C463 / B551 Artificial Intelligence Dana Vrajitoru Python.
CSCI/CMPE 4341 Topic: Programming in Python Review: Exam I Xiang Lian The University of Texas – Pan American Edinburg, TX 78539
Python Functions.
CHAPTER 6 Introduction to PHP5 Part I อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
FUNCTIONS. Topics Introduction to Functions Defining and Calling a Void Function Designing a Program to Use Functions Local Variables Passing Arguments.
General Computer Science for Engineers CISC 106 Lecture 12 James Atlas Computer and Information Sciences 08/03/2009.
Dr. Sajib Datta CSE Spring 2016 INTERMEDIATE PROGRAMMING.
12. MODULES Rocky K. C. Chang November 6, 2015 (Based on from Charles Dierbach. Introduction to Computer Science Using Python and William F. Punch and.
Dr. Sajib Datta Jan 15,  Instructor: Sajib Datta ◦ Office Location: ERB 336 ◦ Address: ◦ Web Site:
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
PHP Tutorial. What is PHP PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.
PROGRAMMING USING PYTHON LANGUAGE ASSIGNMENT 1. INSTALLATION OF RASPBERRY NOOB First prepare the SD card provided in the kit by loading an Operating System.
Fun Fact: Python is not named for the snake Rather, it is named for Monty Python’s Flying Circus.
PYTHON PROGRAMMING. WHAT IS PYTHON?  Python is a high-level language.  Interpreted  Object oriented (use of classes and objects)  Standard library.
Python: File Management Damian Gordon. File Management We’ve seen a range of variable types: – Integer Variables – Real Variables – Character Variables.
C++ Programming Basics C++ Lecture 1 Stacy MacAllister.
CSC 108H: Introduction to Computer Programming Summer 2012 Marek Janicki.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
PHP using MySQL Database for Web Development (part II)
Lesson 06: Functions Class Participation: Class Chat:
Exam #1 You will have exactly 30 Mins to complete the exam.
Topics Introduction to Functions Defining and Calling a Void Function
Python Variable Types.
Introduction to Python
Intro To Pete Alonzi University of Virginia Library
Variables, Expressions, and IO
Python is a general-purpose interpreted, interactive, object-oriented, and high-level programming language. It was created by Guido van Rossum during.
Functions CIS 40 – Introduction to Programming in Python
PHP Introduction.
CSE1320 INTERMEDIATE PROGRAMMING
CSE1320 INTERMEDIATE PROGRAMMING
CSE1320 INTERMEDIATE PROGRAMMING
CSE1320 INTERMEDIATE PROGRAMMING
PH2150 Scientific Computing Skills
Learning to Program in Python
Introduction to Python
CSE1320 INTERMEDIATE PROGRAMMING
PHP.
CSE1320 INTERMEDIATE PROGRAMMING
Intro to PHP.
G. Pullaiah College of Engineering and Technology
Introduction to Computer Science
Python Programming Mr Scicluna.
PHP an introduction.
Functions John R. Woodward.
Web Application Development Using PHP
Introduction to Python
Presentation transcript:

V

2 Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 18 Topics: Intro to HTML/CSS: Questions? Summer Work Letter to Hyland Upcoming Schedule Group Executive Committee Introduction to Programming … Python

3 Avon High School Tech Club HTML/CSS Class QUESTIONS?

4 Avon High School Tech Club Tech Club Executive Committee Next Year: –Election of Officers President Vice President Secretary Treasurer Send me an with interest

5 Avon High School Tech Club Upcoming Schedule Today: Intro to Python May 7th: Intro to Java May 14th: Intro to C# (Guest Speaker) May 21st: Embedded Programming

6 Avon High School Tech Club Intro to Programming … Reset! Language Targets –Python, Java, C# Our Approach: –Install Tools (if needed) –Start with basic examples (for each language) –Walk step-by-step through each example Explain each line of code –Explain concepts –Define Terms –Challenges (for each language)

7 Avon High School Tech Club Intro to Python History Brief Overview Installation/Tools Getting Started Examples Resources

8 Avon High School Tech Club

9 MONTY PYTHON’S FLYING CIRCUS

10 Avon High School Tech Club Python Overview Over 20 years old General-purpose, high-level language Used in math, science, web development, etc. Emphasizes code readability and simplicity Dynamic typing Runs on multiple platforms

11 Avon High School Tech Club “Batteries Included Language” Python includes a “Standard Library” A collection of modules to make some set of tasks simpler Very extensive, offering a wide range of facilities

12 Avon High School Tech Club Python Overview - Strings str = 'Hello World!' print str # Prints complete string print str[0] # Prints first character of the string print str[2:5] # Prints characters starting from 3rd to 6th print str[2:] # Prints string starting from 3rd character print str * 2 # Prints string two times print str + "TEST" # Prints concatenated string

13 Avon High School Tech Club Python Overview - Lists list = [ 'abcd', 786, 2.23, 'john', 70.2 ] tinylist = [123, 'john'] print list # Prints complete list print list[0] # Prints first element of the list print list[1:3] # Prints elements starting from 2nd to 4th print list[2:] # Prints elements starting from 3rd element print tinylist * 2 # Prints list two times print list + tinylist # Prints concatenated lists

14 Avon High School Tech Club Python Overview - Dictionaries dict = {'name': 'john','code':6734, 'dept': 'sales'} print dict['one'] # Prints value for 'one' key print dict[2] # Prints value for 2 key print tinydict # Prints complete dictionary print tinydict.keys() # Prints all the keys print tinydict.values() # Prints all the values Dictionaries work like associative arrays or hashes and consist of key-value pairs

15 Avon High School Tech Club Python Overview - Functions Defining a function only gives it a name, specifies the parameters that are to be included in the function, and structures the blocks of code. Once the basic structure of a function is finalized, you can execute it by calling it from another function or directly from the Python prompt. def functionName (parameters):

16 Avon High School Tech Club Python Overview - Functions # Function definition is here def printme( str ): "This prints a passed string into this function" print str; return; # Now you can call printme function printme("I'm first call to user defined function!"); printme("Again second call to the same function"); parameter function

17 Avon High School Tech Club Python Overview - Modules A module allows you to logically organize your Python code. Grouping related code into a module makes the code easier to understand and use. Simply, a module is a file consisting of Python code. A module can define functions, classes, and variables. A module can also include runnable code.

18 Avon High School Tech Club Python Overview - Modules You can use any Python source file as a module by executing an import statement in some other Python source file. import has the following syntax: import modulename

19 Avon High School Tech Club Getting Started with Python Download Python – –Already installed with most Linux distributions

20 Avon High School Tech Club Getting Started with Python

21 Avon High School Tech Club Running a Python Program 1.Create a file with a.py extension 2.Add some code 3.At a terminal prompt, type: python yourfile.py

22 Avon High School Tech Club Resources Official Python Website – Python 3 Documentation – Learning –CodeAcademy –LearningPython.org –After Hours Programming Python

23 Avon High School Tech Club Python Tutorial Good Python Tutorial: –Appears to be geared towards Python 2.7 –