Skip to content

Module 1 challenge: Hello Python! :Crash Course on Python (Google IT Automation with Python Professional Certificate) Answers 2025

1. What is a computer program?

✔️ Step-by-step instructions on how to complete a set of tasks, to be executed by a computer.

❌ Overview of the problem
❌ File printed by interpreter
❌ Syntax and semantics


2. What is a function?

✔️ A reusable block of code that performs a specific task

❌ Program beginning
❌ Task of a program
❌ Project document


3. Benefits of automation (Select all that apply)

✔️ Doesn’t get tired
✔️ Consistency

❌ Creative tasks
❌ Cost-effective for seldom tasks

(Automation is usually not cost-effective for rare tasks, and not creative.)


4. Rules for how statements are constructed

✔️ Syntax

❌ Grammar
❌ Semantics
❌ Format


5. Program that reads and executes Python code

✔️ Interpreter

❌ Compiler
❌ Translator
❌ Linker


6. Complete code to print the string

✔️

print("I am writing Python code!")

7. Output of print(12/(1+2)+2**2)

Compute:

  • 12/(1+2) = 12/3 = 4

  • 2**2 = 4

  • 4 + 4 = 8.0

✔️ 8.0

❌ 6.0
❌ 15.0
❌ 81.0


8. Program to calculate seconds in an hour

✔️

print(60*60)

(Produces 3600)


9. Number of possible 3-digit passwords

10 possibilities per digit → 10³ = 1000

✔️

print(10**3)

10. Number of computers replaced each year

Total computers = 30 × 20 = 600
Replacement cycle = 5 years
Per year = 600 / 5 = 120.0

✔️

computers_per_year = total_computers / replacement_cycle

📌 SUMMARY TABLE

Q# Final Answer
1 Step-by-step instructions executed by a computer
2 Reusable block of code
3 Doesn’t get tired; Consistency
4 Syntax
5 Interpreter
6 print(“I am writing Python code!”)
7 8.0
8 print(60*60)
9 print(10**3)
10 total_computers / replacement_cycle