You SHOUD HAVE.. C:\100 folder A desktop shortcut to “IDLE (Python34)”

Slides:



Advertisements
Similar presentations
Enter the address as shown below in the address bar.
Advertisements

Function in Notepad def drawSquare(myTurtle): myTurtle.forward(100) myTurtle.right(90) # side 1 myTurtle.forward(100) myTurtle.right(90) # side 2 myTurtle.forward(100)
By Now, 1. Your Student ID should open the classroom door 2. You should have C:\100 folder Desktop shortcuts to Command Prompt and Notepad 3. You should.
The main portal page is the entry point to your project information.
Downloading, Installing, and Working with Dropbox.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. How to Create Web Pages Using HTML Introduction.
To receive your free valentines voice you have to connect your TomTom device to the TomTom HOME Desktop software:
1 Python Programming: An Introduction to Computer Science Chapter 3 Objects and Graphics.
How to install the Zelle graphics package
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.
CST-092 © Delta College CST FacultyIntroduction to Windows Operating System Lecture 2.
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,
Python Mini-Course University of Oklahoma Department of Psychology Day 1 – Lesson 1 Getting Started 4/5/09 Python Mini-Course: Day 1 - Lesson 1 1.
COMP 171: Principles of Computer Science I John Barr.
Introducing Scratch the Cat
Web Programming Basics of HTML. HTML stands for Hyper Text Mark-up Language A mark-up language is different than those that you have learned before in.
Basic Instructions on how to use One Drive and share files. ONE Drive Your LogoYour own footer.
Unit 1, Lesson 3 Program Execution Process AOIT Introduction to Programming Copyright © 2009–2012 National Academy Foundation. All rights reserved.
Hello, little turtles. Hello, little turtles! There are many modules in Python that provide very powerful feature that we can use in our own program.
If..else Use random numbers to compute an approximation of pi Simulation of a special game of darts Randomly place darts on the board pi can be computed.
1 Creating the Header Page The header frame always displays on the AHS Web site The image (screagle.gif) that will go in the header is contained on the.
Epson Interactive Projector Part 2 Whiteboard mode With whiteboard.
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.
Saving PowerPoint Presentations as Web Pages Your Logo Here Open the PowerPoint Presentation. To convert to a format compatible with web browsers, launch.
Spreadsheet Applications What is Excel?. Microsoft Excel MS Excel is an electronic workbook that gives you the ability to perform business and scientific.
CS543: WEB APPLICATION PROGRAMMING Lab 1: HTML tags & SW installation Computer Science Department.
Sequencing The most simple type of program uses sequencing, a set of instructions carried out one after another. Start End Display “Computer” Display “Science”
How to Install Eclipse Click hereClick here to download Eclipse.
1 Installing Cantera 1.7, Python 2.5, and Python SDToolbox for Windows J. Ziegler, S. Browne, and J. E. Shepherd Caltech Revised August, 2007.
PART 2 INTRODUCTION TO DYNAMIC WEB CONTENT AND PHP.
PRINTING LETTERS ON MEMBERSHIP DASHBOARD Quick Instructions 1. Log on to your “Chapter Activities” Center from blue banner 2. Log on as a Chapter.
Copy of the from the secure website - click on the AccoridaLife.zip link.
Instructions for saving and installing your RISSNET certificate ( 3)
1 Creating the Home Page. 2 Creating a Table Table attributes  Two rows and two columns  No border  Left-aligned Change the vertical alignment of the.
1. Starting 1 Let’s Learn Saenthong School, January – February 2016 Teacher: Aj. Andrew Davison, CoE, PSU Hat Yai Campus
Turtle Graphics Let’s see what we can draw on Python!
Turtle Graphics Lesson 2 1. There are 3 homeworks to complete during the six lessons of this unit. Your teacher will let you know when a homework has.
Instructions To Include Contacts In Gmail Login your Gmail Account.
INSTALLING PYTHON 3 COSC 1306 Fall 2016.
Development Environment
You should have C:\100 folder A shortcut to Python IDLE on desktop.
For vs. While loop count=0 while count< 5: for count in range(5):
Introduction to Python
While loop Get names up to five times count=0 while count< 5:
How to create a web page using word …
ACTIVATE SHORTCUT KEYS ON AN HP LAPTOP’S KEYBOARD.
How to access your work from home or another computer
turtle module Simple graphics programming How to use it ?
Historic Digimap Historical maps and data from the Ordnance Survey maps from the 1840s to the 1990s. digimap.edina.ac.uk.
Programming Lab 2 Robot Basic Lessons 1 and 2
Technical expert studying and writing helpful articles on antivirus and other security products.
Statistics and Probability
Frozen Graphics Lesson 3.
CS 100: Roadmap to Computing
Downloading E-first Piece Software
Let's Learn Python and Pygame
Start by going to E-First Piece under Quality in Business Functions
How to Embed Videos into Powerpoint
CS 100: Roadmap to Computing
WICS - Flappy Anteater Python Tutorial
Chap. 3 Functions Start Python IDLE (Shell) and open a new file.
A look at Python Programming Language 2018.
Instructions on printing multiple slides on one sheet
Go to the Audacity website. (You can search for Audacity in Google).
Python Lesson’S 1 & 2 Mr. Kalmes.
More to Learn Creating a shortcut
Creating buttons in Fireworks
Using Modules.
Presentation transcript:

You SHOUD HAVE.. C:\100 folder A desktop shortcut to “IDLE (Python34)”

Python file A file to save a program, and re-use it From IDLE, select ‘File>New FIle’ Enter Python instructions Save with.py extension

Python Modules & Packages A collection of useful tools/resources Math numPy, sciPy bioPython pyGame

turtle module Simple graphics programming How to use it ? Import ‘turtle’ module Create a turtle, and NAME it to your own name Say, you named a turtle ‘xxx.’ Can have more than one turtles at a time – tell them apart by names Call actions to take (METHOD) xxx.goto()

Turtle in Python >>> import turtle Turtle attributes Position, heading (direction), color, tail position >>> myT = turtle.Turtle() Turtle screen With myT myT.forward(100), myT.backward(100) myT.right(90), myT.left(45) myT.goto(-200,90), myT.circle(50), myT.color(“red”) myT.up(), myT.down() myT.write(“Hello!”) html

Figure 1.9

turtle module >>> import turtle >>> myT = turtle.Turtle() What is “.” between turtle and Turtle() ? turtle => class (generic object) Turtle() => method (action, function, constructor) Rough interpretation: get ‘turtle’ type and do ‘Turtle()’ >>> myT.color(“red”) Get ‘myT’ turtle and color it red attribute

Other Methods >>> myT = turtle.Turtle() With myT myT.forward(100), myT.backward(100) myT.right(90), myT.left(45) myT.goto(-200,90), myT.circle(50), myT.color(“red”) myT.up(), myT.down() myT.write(“Hello!”) Official Python turtle page

Which methods to use ? Suppose ‘myT’ turtle is created Draw a circle --- myT.circle(100) Draw a thicker circle – myT.width(5) Find out the location (x,y) of myT – myT.position() Move myT to (100,-50) – myT.goto(100,-50) Stop drawing – myT.up() Find out the screen sizes – myT.window_width() and myT.window_height()

Lab 1 Draw any two circles of olympics rings After done, click on ‘Print Screen’ button at upper right, save it to a MS Word file with your name, and to

HW 1 Due on 9/14 (Mon) class time From python.org/downloads, download python3.4.3 and install in on your computer HW #1 – Draw five circles of olympics rings your python program of olympics rings to