Topic: Where to put functions in a program

Slides:



Advertisements
Similar presentations
Developing an Action Plan with Ketso. Start with the ideas on the Ketso you used for project planning.
Advertisements

C++ Basics March 10th. A C++ program //if necessary include headers //#include void main() { //variable declaration //read values input from user //computation.
Making Inferences. An inference (conclusion) is an idea created by reading between the lines – the idea is not stated in the passage but can logically.
The Writing Process Strategies for Effective Introductions & Conclusions.
Genome Sciences 373 Genome Informatics Quiz Section 2 April 7, 2015.
Class Definition: Maintaining a physical and chemical equilibrium within your body. Picture: My Definition: I maintain homeostasis by…
Theme in Literature.
The Definition Essay When you are writing a definition essay you take the term or idea and write about what it is—true meaning combined with what the term.
Chapter 9 IF Statement Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2012.
Making Friends in High School Mindy’s Story. When my friends are talking and I walk up….
12 POWERFUL WORDS Bellringers. 12 Powerful Words 1. Analyze- Break into parts, describe or explain each part and how they relate 2. Argue- Defend a position.
Body Paragraph: The job of each body paragraph is to support the thesis. Each body paragraph MUST connect to the thesis. If a paragraph does not support.
Topic 1Topic 2Topic 3Topic 4Topic
VOCAB WORD Textbook Definition TOPIC Definition in your own words Source.
SCIENCE LITERACY THIRD GRADE UNIT 1 HEAT. UNIT 1 VOCABULARY heatmolecules insulator conduction.
Your text here Agenda. Topic One Statement Topic Two Statement Topic Three Statement Topic Four Statement.
Chapter 1 – WRITING A PARAGRAPH Copyright © 2012 Terry Hudson.
Your paper must include the following: 1. A thesis statement 2.background information about your topic 3. At least two pieces of supporting evidence which.
Close Reading Reading with a PLAN for Understanding the Material What do you know about active reading?
Learners Support Publications Introduction to C++
Creating and Using Modules Sec 9-6 Web Design. Objectives The student will: Know how to create and save a module in Python Know how to include your modules.
Thesis Statement Help! I need help with my most important sentence!
Distributive Property and Factoring Definition of Distributive Property Axiom  For any numbers, a, b, and c, a(b+c)=ab+ac  For any numbers, a, b, and.
Topic: Python Lists – Part 1
Topic: Python’s building blocks -> Variables, Values, and Types
Topic: Functions – Part 1
Understanding Paragraph and Essay Form
Essay.
Topic: Python’s building blocks -> Statements
Topic: Python’s building blocks -> Variables, Values, and Types
My Picture Dictionary Comments and Future Considerations: Sentences T
Topic: Functions – Part 2
Atomic Structure Jeopardy!
קורס פיננסי – מושגים פיננסיים / כלכליים
Parent involvement in education
TLC Scope and Sequence Mrs. Merrill 11/19/2018.
4-2 Functions in C In C, the idea of top–down design is done using functions. A C program is made of one or more functions, one and only one of which.
Concentration Statement
Assessment Piece – Evaluation Success Criteria
Why??? To put your main ideas into one final sentence
Header Title Header Title Header Title Header Title Header Title
Class Commenting Doxygen for Classes.
U.S. History Research Paper Outline & Organizer (Due 4/11!!)
Vocabulary Review Topic.
The Five-Paragraph Essay
Comments, Prototypes, Headers & Multiple Source Files
The main idea or underlying meaning of a literary work
Python 21 Mr. Husch.
Working in Groups.
Essay.
Harvard ManageMentor®
Controlling Program Flow
DRESS AND GROOMING REGULATION
U.S. History Research Paper Outline & Organizer
Annotations 9/4/13.
Writing Focus: Description of a Thing
Design & Hope Valley College
Use one slide for each concept
Clues:.
CSCE 206 Lab Structured Programming in C
CMPT 120 Lecture 13 – Unit 2 – Cryptography and Encryption –
Lecture 31 – Practice Exercises 7
This is my sheet And this is my sheet.
Lecture 5 – Unit 1 – Chatbots Python – More on Conditional statements
Lecture 20 – Practice Exercises 4
Lecture 20 – Practice Exercises 4
Lecture 37 – Practice Exercises 9
Python Classes In Pune.
8Y Wednesday Essay Basics
Lecture 37 – Practice Exercises 9
Presentation transcript:

Topic: Where to put functions in a program CMPT 120 Topic: Where to put functions in a program

Where to put functions in our Python program Header comment block + import statement(s) # Header Comment Block # Function 1 … Function definitions # Function n # Main part of my program The main part of my program

Function call –> situation 1 Python program Header comment block + import statement(s) # Header Comment Block # Function Function definition # Main part of my program Function is called The main part of my program

Function call –> situation 2 Python program Header comment block + import statement(s) # Header Comment Block # Function 1 Function definitions # Function 2 # Main part of my program Function 1 is called The main part of my program Function 2 is called

Function call –> situation 3 Python program Header comment block + import statement(s) # Header Comment Block # Function 1 Function definitions # Function 2 Function 1 is called # Main part of my program The main part of my program Function 2 is called

Function call -> Would this situation work? Python program # Header Comment Block Header comment block + import statement(s) # Function 1 Function definition # Main part of my program Function 1 is called The main part of my program Function 2 is called # Function 2 Function definition

Function call –> Would this situation work? Python program Header comment block + import statement(s) # Header Comment Block # Function 1 Function 2 is called Function definitions # Function 2 # Main part of my program The main part of my program Function 1 is called

Where to put functions in our Python program – Not a good idea! Header comment block + import statement(s) # Header Comment Block # Main part of my program The main part of my program # Function 1 Function definitions # Function 2