Search Header Logo
Python

Python

Assessment

Presentation

Computers

3rd Grade - Professional Development

Practice Problem

Medium

Created by

Stephen Chen

Used 18+ times

FREE Resource

6 Slides • 3 Questions

1

Python: Part 1

by Stephen Chen

2

​Introduction: What is Python?

Python is a high-level general purpose programming language.  Python constructs as well as its object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.

3

​Coding Basics

​print - The print function put text on screen.

​x = 5 - This creates a variable that's whose value is 5.

​MyString = ["_", "_"] - Creates a string named MyString.

4

​Creating "Hello, World!" in Python

​Download Python here: https://www.python.org/downloads/ (Copy and Paste)

​Type in: print ("Hello, World!")

​Output: Hello, World!

5

​Variables in Python

Variables store 1 value in Python.

​Type in: x = 1

​ print (x)

​Output: 1

​To change a variable, type in...

​<variable name> = <new value>

​Type in: x = 2

print (x)

​Output: 2

6

​Strings in Python

Strings store multiple values in Python.

​Type in: MyString = [1, 2, 3, 4, 5]

​ print (MyString)

​Output:

[1, 2, 3, 4, 5]

7

Multiple Choice

Quiz: What is a  string?

1

A variable that stores multiple values.

2

A variable that stores 1 value.

3

A function that outputs words/numbers.

4

A function that asks user input.

8

Multiple Choice

Quiz: What is a  variable?

1

A function that inputs a module.

2

A variable that stores 1 value.

3

A function that outputs words/numbers.

4

A function that asks user input.

9

Multiple Choice

How do you create words in Python?

1

Using the if then function

2

Using a variable

3

Using the import function

4

Using the print function

Python: Part 1

by Stephen Chen

Show answer

Auto Play

Slide 1 / 9

SLIDE

Discover more resources for Computers