• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 1 fuera de 2 páginas
Examen

Python Programming Chapter 2 Summary-Questions and Answers

Document preview thumbnail
Vista previa 1 fuera de 2 páginas

Python Programming Chapter 2 Summary-Questions and Answers Steps to writing a program - ANSWER-1. Problem Analysis: Studying the problem to be solved 2. Program Specification: Deciding exactly what the program will do. 3. Design: Writing an algorithm in pseudocode. 4. Implementation: Translating the design into a programming language. 5. Testing/Debugging: Finding and fixing errors in the program. 6. Maintenance: Keeping the program up to date with evolving needs. IPO - ANSWER-Many simple programs follow the input process output (IPO) pattern Programs are composed of statements that are built from - ANSWER-identifiers and expressions Identifiers - ANSWER-names; begin with an underscore or a letter which can be followed by a combination of letter, digit, or underscore characters; are case-sensitive in Python Expressions - ANSWER-fragments of a program that produce data; can be composed of literals, variables and operators literals - ANSWER-a representation of a specific value; 3 is a literal representing the number three variables - ANSWER-an identifier that stores a value; a named piece of memory operators - ANSWER-used to combine expressions into more complex expressions; in x + 3 * y the operators + and * are used; includes usual arithmetic operations of addition(+), subtraction(-), multiplication(*), division(/), and exponentation(**) The Python output statement print - ANSWER-displays the values of a series of expressions to the screen Assignment - ANSWER-assignment of a value to a variable is indicated using the equal sign (=). using assignment, programs can get input from the keyboard; Python also allows simultaneous assignment, which is useful for getting multiple input values with a single prompt The eval function can be used to evaluate input.. - ANSWER-..but it is a security risk and should not be used with input from unknown or untrusted sources


Información del documento

Subido en
28 de marzo de 2024
Número de páginas
2
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas
$8.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
0
Seguidores
0
Artículos
386
Última venta
-



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes

Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.