• ¿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

Week 1 :: Crash Course Python ::Graded Assessment Completed 100%

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

What is a computer program? A step-by-step recipe of what needs to be done to complete a task, that gets executed by the computer (Being able to write such programs is a super useful skill that you'll acquire through this course.) What's automation? The process of replacing a manual step with one that happens automatically. 00:03 00:56 Which of the following tasks are good candidates for automation? Check all that apply. Creating a report on how much each sales person has sold in the last month. Setting a home directory and access permissions for new employees joining your company Populating your company's e-commerce site with the latest products in the catalog. What are some characteristics of the Python programming language? Check all that apply. Python programs are easy to write and understand (Because the syntax used by Python is similar to the one used by the English language) The python interpreter reads our codes and transforms it into computer instructions (We write our code using Python's syntax and semantics, and the interpreter transforms that into instructions that our computer executes.) We can practice Python using web interpreters or codepads as well as executing it locally (We can practice writing Python code with many different tools available to us, both online and offline) How does Python compare to other programming languages? Each programming language has its advantages and disadvantages (Each language has its pros and cons. The best language to choose will depend on the problem you are trying to solve.) Write a Python script that outputs "Automating with Python is fun!" to the screen. for i in range(1): print("Automating with Python is fun!") Fill in the blanks so that the code prints "Yellow is the color of sunshine". color = "Yellow" thing = "sunshine" print(color + " is the color of " + thing) Keeping in mind there are 86400 seconds per day, write a program that calculates how many seconds there are in a week, if a week is 7 days. Print the result on the screen. Note: Your result should be in the format of just a number, not a sentence. print (86400*7) Use Python to calculate how many different passwords can be formed with 6 lower case English letters. For a 1 letter password, there would be 26 possibilities. For a 2 letter password, each letter is independent of the other, so there would be 26 times 26 possibilities. Using this information, print the amount of possible passwords that can be formed with 6 letters. p = 26 total = p ** 6 print(total) Most hard drives are divided into sectors of 512 bytes each. Our disk has a size of 16 GB. Fill in the blank to calculate how many sectors the disk has. disk_size = 4*1024 sector_size = 512 sector_amount = (4*1024)/512 print(sector_amount)


Información del documento

Subido en
26 de agosto de 2022
Número de páginas
2
Escrito en
2022/2023
Tipo
Examen
Contiene
Preguntas y respuestas
$9.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.
EvaTee
3.9
(991)
Vendido
5507
Seguidores
3584
Artículos
59646
Última venta
10 horas 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.