DARCHUMSTECH Python Beginner Workbook

DARCHUMSTECH Python Beginner Workbook

DARCHUMSTECH Python Beginner Workbook

Author: Darlington Mbawike (Darchums)

Mission: "Empowering future tech minds through practical learning."

Lesson 1: Introduction to Python & Print Statements

Concept: Python is beginner-friendly and lets you print messages easily using print().

# Simple print statement
print("Hello, World!")

1. What is the output of this code?

print("Hello, World!")

2. What function is used to display output in Python?

Lesson 2: Variables & Data Types

Concept: Variables hold data in Python. They can store numbers, text, or even true/false values.

name = "Alice"
age = 25
print(name, "is", age, "years old.")

3. What is the data type of 25 in Python?

4. Which of these is a valid variable name?

5. What will this print?

color = "blue"
print("Color:", color)

6. Which keyword is used to assign a value to a variable?

7. What is the output of this code?

print("5 + 3 =", 5 + 3)

8. Which of the following is a string?

9. Which is a boolean value in Python?

10. What will this print?

is_python_fun = True
print(is_python_fun)

Comments

Post a Comment