You are on page 1of 2

IS5312 Sem A, 2023/2024

ifIS5312 Assignment Week03

Q1: Write a python program with nested while loops and if-else conditions to draw and
print the following pattern.

Q2: Assuming that you are a customer service agent responsible for sending emails to notify
customers of shipments. To reduce the workload, please write a python program as email
writing assistant.
Requirements of the email writing assistant program:
• Use a while loop to prompt input and repeat indefinitely (hint. while True:).
• Enter customer name and product name as input.
• Print email message with entered customer name and product name in the following
format (The content underlined in italics is required to be entered):

Dear customer name:


Your purchased product name is delivered.
Thanks for your order!

• Print a horizontal line after each single email message as separator.


• Stop the execution of loop when # is entered in customer name.

CityU IS Dept 1|Page


IS5312 Sem A, 2023/2024

Example:

CityU IS Dept 2|Page

You might also like