Skip Navigation

Utah Core  •  Curriculum Search  •  All CTE/Digital Technology Lesson Plans  •  USBE CTE/Digital Technology website

 

CTE/Digital Technology Curriculum Python 2, Introduction
Printable Version Printable Version (pdf)

 

arrow icon Course Introduction

 

Core Standards of the Course

STRAND 1
Lists (Arrays)

Standard 1
Students will identify when to use a list

  1. Student will create a list with strings and numeric values
  2. Access a particular element in a list by using an index

Standard 2
Students will use the list methods to manipulate their lists

  1. .append(), .pop(), and .insert()
  2. .extend(), +, .reverse(), and .sort()
  3. .join(), split()

Standard 3
Students will use a for loop with "in"

  1. For example:
    • fruits = ["apple", "banana", "cherry"]
    • for x in fruits: print (x)
  2. Students will use a for loop with range()
    • For example:
    • for x in range (4) print (x)

Performance Skills

  1. use a variety of list methods
  2. use a for loop with "in"
  3. use a for loop with range()

STRAND 2
Indexes

Standard 1
Students will understand an index

  1. The first index location is zero

Standard 2
Understand how a string is indexed

  1. Work with string characters by index

Standard 3
Students will slice a string into substrings

  1. Students will slice a list into sub lists

Performance Skills

  1. Find the location of an element in a list
  2. Slice a string into substrings
  3. Slice a list in to sub lists

STRAND 3
Working with Files

Standard 1
Students will be able to:

  1. Import files into Jupyter notebooks by using the curl command.
  2. Read a local file in memory.
  3. Use .read() to read a specific number of characters.

Standard 2
Students will be able to:

  1. Use .readlines() to read text from files as a list of lines.
  2. Use .close() to free system resources.

Standard 3
Students will be able to:

  1. Use .readline() to read data from a file one line at a time.
  2. Use .strip() to remove newline characters and other whitespaces.

Standard 4
Students will be able to:

  1. Use .seek() to set file read and write locations.
  2. Use file append mode.

Standard 5
Students will be able to:

  1. Use .write() to write to a file
  2. Use file append mode to append to a file

Performance Skills

  1. Use .read() to read a specific number of characters.
  2. Use .readlines() to read data from file as a list of lines.
  3. Use .readline() to read data from file a line at a time.
  4. Use .strip() to remove newline characters.
  5. Use .write() to write data to a new local file.
  6. Use .seek() to set file read or write location.
  7. Use file append mode.


UEN logo http://www.uen.org - in partnership with Utah State Board of Education (USBE) and Utah System of Higher Education (USHE).  Send questions or comments to USBE Specialist - Kristina  Yamada and see the CTE/Digital Technology website. For general questions about Utah's Core Standards contact the Director - THALEA  LONGHURST.

These materials have been produced by and for the teachers of the State of Utah. Copies of these materials may be freely reproduced for teacher and classroom use. When distributing these materials, credit should be given to Utah State Board of Education. These materials may not be published, in whole or part, or in any other format, without the written permission of the Utah State Board of Education, 250 East 500 South, PO Box 144200, Salt Lake City, Utah 84114-4200.