Search Header Logo
Unit 1 Lesson 1-3

Unit 1 Lesson 1-3

Assessment

Presentation

Computers

6th - 8th Grade

Hard

Created by

Staci Eisman

Used 21+ times

FREE Resource

27 Slides • 0 Questions

1

Unit 1 Lesson 1-3

Slide image

2

FUNCTION

(1) In programming, a named section of a program that performs a specific task. In this sense, a function is a type of procedure or routine. Some programming languages make a distinction between a function, which returns a value, and a procedure, which performs some operation but does not return a value.

3

Basics of a Function

Functions are a useful tool for helping us write and organize more complex pieces of code.

4

Example of Function in Python

call the function with parenthesis ( ) inside of the parenthsis is the command you want the code to make. 

Slide image

5

FUNCTION

(1) In programming, a named section of a program that performs a specific task. In this sense, a function is a type of procedure or routine. Some programming languages make a distinction between a function, which returns a value, and a procedure, which performs some operation but does not return a value.

6

Watch this video about functions

https://youtu.be/79S-pzFRyBQ

7

Variable

A variable is a value that can change, depending on conditions or on information passed to the program. Typically, a program consists of instruction s that tell the computer what to do and data that the program uses when it is running.

8

Example of Variables

call the function with parenthesis ( ) inside of the parenthsis is the command you want the code to make. 

Slide image

9

Watch this video about variables

https://youtu.be/Jvrszgiexg0

10

Constant

Data values that stay the same every time a program is executed are known as constants. Constants are not expected to change. Literal constants are actual values fixed into the source code. Named constants are values where a name is defined to be used instead of a literal constant.

11

Constant example 

Slide image

12

Watch this video about Constant

https://youtu.be/6-hZZos24cQ


13

While Loop

A loop that continues to repeat while a condition is true. 

14

While Loop example 

Slide image

15

Watch this video about While Loop

https://youtu.be/RtAPBvz6k0Y


16

Condition

A statement that a program checks to see if it true or false. If true, an action is taken. Otherwise, the action is ignored. 

17

Condition example 

Slide image

18

Watch this video about Condition

https://youtu.be/I78FBGZX8B8


19

Conditionals

Statements that only run under certain conditions. 

20

Conditional example 

Slide image

21

Watch this video about Conditionals

https://youtu.be/sO4UYCbTxxo


22

Commands

An instruction for the computer. Many commands put together make up algorithms and computer program. 

23

Command example 

Slide image

24

Watch this video about Commands

https://youtu.be/i2KHYUhtOlM

25

Until

A command that tells you to do something only up to the point that something becomes true. 

26

Until example 

Slide image

27

Watch this video about "until"

https://youtu.be/MjOU6uJDJuI

Unit 1 Lesson 1-3

Slide image

Show answer

Auto Play

Slide 1 / 27

SLIDE