Grandparents U, 2018 Part 2

Similar documents
Comparing DNA Sequences to Understand Evolutionary Relationships with BLAST

Recursion with Turtles

PYTHON FOR KIDS A Pl ayfu l I ntrodu ctio n to Prog r am m i ng J a s o n R. B r i g g s

Python 3 Turtle graphics. Lecture 24 COMPSCI111/111G SS 2017

1 Turtle Graphics Concepts

In this project you will use loops to create a racing turtle game and draw a race track.

Egg laying vs. Live Birth

Moving toward formalisation COMP62342

Biology 164 Laboratory

Lab 7: Experimenting with Life and Death

Genetics Lab #4: Review of Mendelian Genetics

No tail (Manx) is a dominant trait and its allele is represented by M The presence of a tail is recessive and its allele is represented by m

Evolution in Action: Graphing and Statistics

Genetics Lab #4: Review of Mendelian Genetics

Fractal. Fractals. L- Systems 1/17/12

6. 1 Leaping Lizards!

Tour de Turtles: It s a Race for Survival! Developed by Gayle N Evans, Science Master Teacher, UFTeach, University of Florida

Grade: 8. Author: Hope Phillips

Learn more at LESSON TITLE: BRINGING UP BIRDY GRADE LEVEL: 2-3. TIME ALLOTMENT: One to two 45-minute class periods OVERVIEW:

Workbook. Version 3. Created by G. Mullin and D. Carty

Caring for an Animal s Needs

LABORATORY EXERCISE 6: CLADISTICS I

Level 11. Book g. Level 11. Word Count 210 Text Type Information report High Frequency Word/s Introduced. The Snail Race Outside Games

Training Your Dog With The Dogtra e-fence

Mini 4-H ANIMAL FRIENDS

Transition to Cold Blinds

LN #13 (1 Hr) Decomposition, Pattern Recognition & Abstraction CTPS Department of CSE

Turtle Ballet: Simulating Parallel Turtles in a Nonparallel LOGO Version. Erich Neuwirth

Compliance Can Be Ruff A Dog s Approach

Moving towards formalisation COMP62342

Writing Simple Procedures Drawing a Pentagon Copying a Procedure Commanding PenUp and PenDown Drawing a Broken Line...

American Mondioring Brevet Rules. for the. United States Mondioring Association. June 1, 2006

Rear Crosses with Drive and Confidence

LABORATORY EXERCISE 7: CLADISTICS I

Phenotypic and Genetic Variation in Rapid Cycling Brassica Parts III & IV

LAUSD INTERIM ASSESSMENTS ELEMENTARY LITERACY GRADE 2 The Best Pet. people.

Suggested Solutions for Responsible Pet Ownership Citizenship Scenarios

COMPARING DNA SEQUENCES TO UNDERSTAND EVOLUTIONARY RELATIONSHIPS WITH BLAST

KIAWAH ISLAND 2012 Annual Turtle Patrol Project Report

Scratch Lesson Plan. Part One: Structure. Part Two: Movement

Laboratory 7 The Effect of Juvenile Hormone on Metamorphosis of the Fruit Fly (Drosophila melanogaster)

In the first half of the 20th century, Dr. Guido Fanconi published detailed clinical descriptions of several heritable human diseases.

Homework: 1. Catalyst 2. Cladogram Building 3. Jigsaw Reading. Agenda:

1 What Is a Vertebrate?

CS108L Computer Science for All Module 7: Algorithms

How do we use a Dichotomous Key? Lab #

Results for: HABIBI 30 MARCH 2017

Advanced Beginner 2 Agility Week 1 Goals for Advanced Beginner Agility class: ***Reinforcement builds behavior!

1. Examine the specimens of sponges on the lab table. Which of these are true sponges? Explain your answers.

NCHRP Project Production of a Major Update to the Highway Capacity Manual 2010

The City School. Learn Create Program

Lab 5: Bumper Turtles

3. $ rosrun turtlesim turtlesim_node (See the turtle with Blue Background leave terminal window running and view turtle)

The DOG Sentence-Building Exercise 1

Let s Build a Cladogram!

Name period date assigned date due date returned. The Genetics of Garden Peas

Vertebrates. What is a vertebrate?

Congratulations on obtaining your Canine Breed Composition DNA Analysis

Muppet Genetics Lab. Due: Introduction

COMPARING DNA SEQUENCES TO UNDERSTAND EVOLUTIONARY RELATIONSHIPS WITH BLAST

Introduction to phylogenetic trees and tree-thinking Copyright 2005, D. A. Baum (Free use for non-commercial educational pruposes)

PROVOST AND VICE PRESIDENT FOR ACADEMIC AFFAIRS COLLEGE OF AGRICULTURE, FORESTRY AND LIFE SCIENCES DIRECTOR OF LIVESTOCK AND POULTRY HEALTH

Congratulations on obtaining your Canine Breed Composition DNA Analysis

Code, Draw, and 3D-Print with Turtle Tina

Package TurtleGraphics

Naked Bunny Evolution

Introduction to Python Dictionaries

Breeding Bunnies. Purpose: To model the changes in gene frequency over several generations. 50 orange beads 50 purple beads 1 paper bag 3 cups

The FCI Initiative for Young Dog Lovers Worldwide. Basic recomendations ORGANIZING YOUTH ACTIVITIES FOR CYNOLOGICAL VENUES.

Title: Sea Turtle Tracking

Title: Phylogenetic Methods and Vertebrate Phylogeny

Activity 1: Changes in beak size populations in low precipitation

Geography of Canada Grade 9 Academic & Applied CGC1D/CGC1P

CSSE 374 Software Architecture and Design I

Course Pack Introduction to Canine Anatomy and Physiology

NATIONAL HERTETOLOGY List posted o n under Event Based upon information at

Reference Guide Playful Invention Company

Noise Nuisance October 2016

CHAPTER 1 OBEDIENCE REGULATIONS GENERAL REGULATIONS

My signature confirms that I will not discuss the content of the test with anyone until the end of the 5 day test window.

muscles (enhancing biting strength). Possible states: none, one, or two.

The Sheep and the Goat by Pie Corbett. So, they walked and they walked and they walked until they met a hare. Can I come with you? said the hare.

USER S GUIDE DECLARATION «CE» DE CONFORMITE «EC» DECLARATION OF CONFORMITY. NUM AXES déclare que / declares that

Ch 1.2 Determining How Species Are Related.notebook February 06, 2018

Course: Canine Massage and Bodywork Certification Course Part A Cranial Trunk and Thoracic Appendicular System. Movers of the Forelimb, Neck, and Head

Mastitis Reports in Dairy Comp 305

Welcome to OLIVER s Extended Donor Profile

hatching twitter A1EACA5CD235F5F DFAF11 Hatching Twitter 1 / 6

Apple Training Series: AppleScript PDF

Addition: Sums to 10. Operations and Algebraic Thinking. Objective. Common Core State Standards. Talk About It. Solve It.

Lab 10: Color Sort Turtles not yet sorted by color

Cladistics (Evolutionary Relationships) Understanding Branching Diagrams

Critically Appraised Topics in the Radiodiagnosis Curriculum

FELINE BEHAVIOR CONSULTATION QUESTIONNAIRE

Alligators. very long tail, and a head with very powerful jaws.

January Review-Cumulative Review Page 1 of 9

Welcome to DONELL s Extended Donor Profile

Field Lesson: Reptiles and Amphibians

How to Train Your Dog to Stay

09/17/18 1 Turtlesim Cheat Sheet pages (PG) in book ROS Robotics By Example 2nd, Fairchild and Harman

Transcription:

Grandparents U, 2018 Part 2 Computer Programming for Beginners Filip Jagodzinski

Preliminaries : Course Website All of these slides will be provided for you online... The URL for the slides are provided to you on your handout

Almost there Computer programming is done using a computer CODE, or coding You learn by making mistakes, sort of like learning how to ride the bicycle Q: How many people were involved in making Pokemon Go

Today A few of the more technical things that make life easier and coding less repetitive!

Turtle Graphics Finally some graphics Turtle # variable values color shape # functions Turtle() forward(int) left(int) This diagram represents the class Turtle It contains functions for modifying a Turtle object s attributes

Turtle Graphics Finally some graphics Turtle # variable values color shape # functions Turtle() forward(int) left(int) This diagram represents the class Turtle It contains functions for modifying a Turtle object s attributes screen = turtle.screen() screen.bgcolor("lightgreen") # create turtle named billy billy = turtle.turtle() billy.color("red") billy.shape("turtle") billy.speed(10) billy.forward(60) billy.up() billy.goto(50,120) billy.down() billy.color("purple") billy.stamp() # create a turtle named susan susan = turtle.turtle() susan.color( blue ) susan.left(165) susan.forward(50) Create a screen & Background color

Turtle Graphics Finally some graphics Turtle # variable values color shape # functions Turtle() forward(int) left(int) This diagram represents the class Turtle It contains functions for modifying a Turtle object s attributes screen = turtle.screen() screen.bgcolor("lightgreen") # create turtle named billy billy = turtle.turtle() billy.color("red") billy.shape("turtle") billy.speed(10) billy.forward(60) billy.up() billy.goto(50,120) billy.down() billy.color("purple") billy.stamp() # create a turtle named susan susan = turtle.turtle() susan.color( blue ) susan.left(165) susan.forward(50) Create a new object of type turtle, and name it billy

Turtle Graphics Finally some graphics Turtle # variable values color shape # functions Turtle() forward(int) left(int) This diagram represents the class Turtle It contains functions for modifying a Turtle object s attributes screen = turtle.screen() screen.bgcolor("lightgreen") # create turtle named billy billy = turtle.turtle() billy.color("red") billy.shape("turtle") billy.speed(10) billy.forward(60) billy.up() billy.goto(50,120) billy.down() billy.color("purple") billy.stamp() # create a turtle named susan susan = turtle.turtle() susan.color( blue ) susan.left(165) susan.forward(50) Change the objects attributes

Turtle Graphics Finally some graphics Turtle # variable values color shape # functions Turtle() forward(int) left(int) This diagram represents the class Turtle It contains functions for modifying a Turtle object s attributes screen = turtle.screen() screen.bgcolor("lightgreen") # create turtle named billy billy = turtle.turtle() billy.color("red") billy.shape("turtle") billy.speed(10) billy.forward(60) billy.up() billy.goto(50,120) billy.down() billy.color("purple") billy.stamp() # create a turtle named susan susan = turtle.turtle() susan.color( blue ) susan.left(165) susan.forward(50) Modify the objects position

Turtle Graphics Finally some graphics Turtle # variable values color shape # functions Turtle() forward(int) left(int) This diagram represents the class Turtle It contains functions for modifying a Turtle object s attributes screen = turtle.screen() screen.bgcolor("lightgreen") # create turtle named billy billy = turtle.turtle() billy.color("red") billy.shape("turtle") billy.speed(10) billy.forward(60) billy.up() billy.goto(50,120) billy.down() billy.color("purple") billy.stamp() # create a turtle named susan susan = turtle.turtle() susan.color( blue ) susan.left(165) susan.forward(50) Create a second object of type turtle, and name it susan

Functions And if you need to do the same thing OVER and OVER again In addition to using Python s functions (such as print), you can create your OWN function, and then use it over and over again as needed. Here s how

Functions And if you need to do the same thing OVER and OVER again First, define a function The format is def functionname(): And in the body of the function include your code

Functions And if you need to do the same thing OVER and OVER again Then, you can invoke the function Multiple times to run it Q: What do you think this draws?

Functions And if you need to do the same thing OVER and OVER again Then, you can invoke the function Multiple times to run it

Today Continue to work on in-lab exercises proceed to graphics when you are ready