Difficulty: Easy ⭐
Time Estimate: 15-20 minutes
Topics: print(), string output, basic formatting
Related Learning: 01-hello-python
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.
No input required - all information should be written directly in the code.
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
********************************
* WELCOME TO PYTHON! *
********************************
Hello! My name is Alex.
My favorite language is Python!
Learning to code is an adventure.
Let's build something amazing!
********************************
+++++++++++++++++++++++++++++++
+ GREETINGS, WORLD! +
+++++++++++++++++++++++++++++++
Hi there! I'm Sam.
I'm learning Python programming!
Every expert was once a beginner.
You've got this!
+++++++++++++++++++++++++++++++
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
Stuck? Try looking at these hints one at a time:
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?
This problem helps you practice:
- Using multiple
print()statements - Creating formatted output
- Using special characters for decoration
- Organizing code for readability
To solve this problem, you should understand:
- The
print()function - String literals (text in quotes)
- Creating blank lines with
print() - Using special characters like
*,+,=,-
- Solution: problem-1-solution.py (try solving first!)
- Performance Analysis: problem-1-performance.md
- Learning Material: 01-hello-python README
Remember: There's no single "correct" design—be creative! Make it your own.
Good luck! 🚀