• ¿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 3 fuera de 16 páginas
Examen

TAMU ENGR 102 (python coding) Latest 2023 Graded A+

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

TAMU ENGR 102 (python coding) Latest 2023 Graded A+ x += c x = x + c a -= 3 a = a - 3 x *= 4 x = x * 4 y /= 3 y = y / 3 what are some different types of variables? Integers, Floating-Point, Strings, Booleans what is an integer? whole numbers, no decimals/fractions what are floating-point numbers? numbers with a decimal point what is boolean? single value either true or false what are strings? way of describing text (you can use either single quotes or double quotes) float(3) value becomes 3.0 int(4.9) has the value 4 str(10*1.0) has the value '10.0' what is the boolean value of true/false? true is assumed to have the value 1 false is assumed to have the value 0 x = 3 y = 4 print(str(x) + ':' + str(y)) 3:4 how to ask the user for input? x = float(input()) == equal to != inequality a = 10 b = 10 c = 20 d = ((ab) and (b=c)) or (not((((c=a+b) and (a==10)) or ((b==10) and c!=10)))) print(d) false temperature = 100 is_hot = (temperature 85) if is_hot: print("It's hot") if not is_hot: print("It's not hot") It's hot when to use if-elif-else statements? when you have multiple "cases" of the same type when to use nested statements? when there is a clear "order" of checks: checking A then B what is the "while" statement? creates a loop and wi


Información del documento

Subido en
17 de diciembre de 2023
Número de páginas
16
Escrito en
2023/2024
Tipo
Examen
Contiene
Preguntas y respuestas
$10.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

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.
StellarScores
4.0
(522)
Vendido
2023
Seguidores
867
Artículos
21171
Ú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

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