Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 3 fuera de 19 páginas
Examen

D335 Introduction to Python (Sections 1-4) (154 questions with verified solutions).

Document preview thumbnail
Vista previa 3 fuera de 19 páginas

D335 Introduction to Python (Sections 1-4) (154 questions with verified solutions).

Vista previa del contenido

D335: Introduction to Python (Sections
1-4) (154 questions with verified
solutions)
Input
A program gets data, perhaps from a file, keyboard, touchscreen,
network, etc.
Process
A program performs computations on that data, such as adding two
values like x + y
Output
A program puts that data somewhere, such as to a file, screen, or
network.
computational thinking,
creating a sequence of instructions to solve a problem
algorithm
A sequence of instructions that solves a problem
Python interpreter
a computer program that executes code written in the Python
programming language.
interactive interpreter

,a program that allows the user to execute one line of code at a time
Code
a common word for the textual representation of a program
line
row of text
prompt
indicates the interpreter is ready to accept code
statement
a program instruction
Expressions
code that return a value when evaluated
cariables
named references to values stored by the interpreter
print()
function that displays variables or expression values
'#"
character tha denote comments, which are optional but can be used to
explains portions of code to a human reader
string literal
text enclosed in quotes (single or double) and can contain letters,
numbers, spaces, or symbols
Why would a programmer add

, end=' ' inside of print()?
To keep the output on the same line
print(variable_name) without quotes
to output the value of a variable
\n
newline character; output can be moved to the next line
whitespace
any space, tab, or newline
variable = input()
reads a user-enter string and changes it into a variable
type
determines how a value can behave
int()
converts a string to an integer
syntax error
violating a programming language's rules on how symbols can be
combined to create a program
runtime error
program's syntax is correct, but the program attemps an impossible
operation, such as dividing by zero or multiplying strings together
crash
Abrupt and unintended termination of a program

Información del documento

Subido en
8 de agosto de 2025
Número de páginas
19
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$16.99

¿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

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
GUARANTEEDSUCCESS
4.4
(251)
Vendido
686
Seguidores
314
Artículos
24885
Última venta
1 semana hace


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