Skip to content

Commit 7f96612

Browse files
committed
Updated exercise
1 parent c60b6ca commit 7f96612

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

Instructions/Exercises/03-create-personalized-banner.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,17 +127,12 @@ Installing a package puts the code on your machine. To actually use it in your p
127127
128128
## Ask the user for their name
129129
130-
You've done this before in earlier modules. You'll capture the name in a variable and clean up any extra spaces the user might type.
131-
132130
1. Beneath the `# Ask the user for their name` comment, add the following lines:
133131
134132
```python
135133
name = input("What is your name? ")
136-
name = name.strip()
137134
```
138135
139-
The `.strip()` method removes any spaces at the start or end of the text.
140-
141136
## Turn the name into a banner
142137
143138
The pyfiglet package has a function called `figlet_format()` that takes a string and returns a big ASCII version of it.
@@ -238,7 +233,7 @@ Errors are a normal part of programming. Learning to read them is one of the mos
238233
239234
1. Run the program one more time to confirm everything works again.
240235
241-
## Extend your program with GitHub Copilot
236+
## Display a mood banner with GitHub Copilot
242237
243238
GitHub Copilot can help you build on top of what you already have. You'll use a comment to guide Copilot into adding a farewell banner.
244239
@@ -292,7 +287,7 @@ The banner currently uses the default pyfiglet font. Ask the AI about the `font`
292287
293288
**Center your greeting**
294289
295-
> "In Python, how can I center a string inside a wider space when I print it?"
290+
> "How can I center a string inside a wider space when I print it?"
296291
297292
Right now the `Hello, ...` line sits flush against the left margin, below a wide banner. Ask the AI about the string `.center()` method, then use it to center your greeting inside a 40-character space so it lines up more nicely.
298293

0 commit comments

Comments
 (0)