Exam 98-381: Introduction to Programming Using Python/Perform Operations using Data Types and Operators

This lesson covers variables, data types, type conversion, data structures, indexing, slicing, operators, assignment, and comparison.

Evaluate an expression to identify the data type Python will assign to each variable
Identify str, int, float, and bool data types
 * "1"
 * 1
 * 1.0
 * True, False

Perform data and data type operations
Convert from one data type to another type; construct data structures; perform indexing and slicing operations
 * str -->La función convierte el valor especificado en una cadena.
 * int -->The  function converts a number or a string to its equivalent integer
 * float -->The  method returns a floating point number from a number or a string.
 * bool --> The  method takes a specified argument and returns its boolean value.
 * list = [] --> Create a List:
 * dictionary = {}
 * list[start:end(-1)]

Determine the sequence of execution based on operator precedence
Assignment; Comparison; Logical; Arithmetic; Identity (is); Containment (in)
 * =, +=, -=, *=, /=, %=, //= **=, &=, |=, ^=, &gt;&gt;=, &lt;&lt;=
 * ==, &lt;=, &gt;=, &lt;, &gt;, !=
 * variable is variable
 * element in value
 * element in value

Select the appropriate operator to achieve the intended result
Assignment; Comparison; Logical; Arithmetic; Identity (is); Containment (in)