Skip to content

Latest commit

 

History

History
109 lines (78 loc) · 2.8 KB

File metadata and controls

109 lines (78 loc) · 2.8 KB

Problem 1: Personal Greeting Card

Difficulty: Easy ⭐
Time Estimate: 15-20 minutes
Topics: print(), string output, basic formatting
Related Learning: 01-hello-python

📝 Problem Statement

Create a program that displays a personalized greeting card with your information formatted nicely. The card should include your name, a greeting message, your favorite programming language (Python, of course!), and a decorative border.

📥 Input

No input required - all information should be written directly in the code.

📤 Output

A formatted greeting card with:

  • A decorative top border
  • A personalized greeting
  • Your name
  • Your favorite programming language
  • A motivational message
  • A decorative bottom border

💡 Examples

Example 1

********************************
*     WELCOME TO PYTHON!       *
********************************

Hello! My name is Alex.
My favorite language is Python!

Learning to code is an adventure.
Let's build something amazing!

********************************

Example 2

+++++++++++++++++++++++++++++++
+      GREETINGS, WORLD!      +
+++++++++++++++++++++++++++++++

Hi there! I'm Sam.
I'm learning Python programming!

Every expert was once a beginner.
You've got this!

+++++++++++++++++++++++++++++++

🎯 Requirements

Your solution must:

  • Use at least 8 print() statements
  • Include decorative borders (top and bottom)
  • Display your name
  • Mention Python as your language
  • Include at least one blank line for spacing
  • Use proper formatting for readability

💭 Hints

Stuck? Try looking at these hints one at a time:

🧪 Test Your Solution

After writing your code, verify it:

  • Does it display a top border?
  • Is your name included?
  • Is Python mentioned?
  • Does it have good spacing and readability?
  • Does it display a bottom border?
  • Does it look like a greeting card?

🎓 Learning Goals

This problem helps you practice:

  • Using multiple print() statements
  • Creating formatted output
  • Using special characters for decoration
  • Organizing code for readability

📚 Concepts Needed

To solve this problem, you should understand:

  • The print() function
  • String literals (text in quotes)
  • Creating blank lines with print()
  • Using special characters like *, +, =, -

🔗 Resources


Remember: There's no single "correct" design—be creative! Make it your own.

Good luck! 🚀