Waived!

We will build a Python programme A1Q2.py to display formatted messages in this problem….

(4 customer reviews)

Original price was: $15.00.Current price is: $10.00.

Download button will appear immediately after successful payment.

Full support will be provided with necessary files installation.

Get impeccable customized solution within 24 hours, hassle-free.

View Details
Solved By Verified
Study Co-Pilot All Study Co-Pilots are evaluated by Gotit Pro as an expert in their subject area.
Instant
Download

Description

We will build a Python programme A1Q2.py to display formatted messages in this problem.

Specifically:

1) Ask the users to input a string message which includes your name and a short message, i.e. ‘[Robert Kim] loves Hong Kong’. Make this entire message less than 40 characters, including your name. Put your name in the format: [first name] [Last name].
2) Ask users to input a positive integer that is greater than 40, which will serve as a field width subsequently.
3) Ask the user to input an alignment method [left, right or center].
4) Based on the following flow to write your code:

The sample output on different cases of input, the text in green indicates the user input or program output:
Alignment method
left
right
center
Wrong method
Output


You may also like…