External Exam Download Resources Web Applications Games Recycle Bin

Exercise 1 - Mailing Label - Solution

BEGIN mailingLabel
  INPUT recipient
  INPUT streetAddress
  INPUT suburb
  INPUT state
  INPUT postcode
  OUTPUT recipient
  OUTPUT streetAddress
  OUTPUT suburb, state, postcode
END
recipient = input("recipient: ")
streetAddress = input("streetAddress: ")
suburb = input("suburb: ")
state = input("state: ")
postcode = input("postcode: ")
print(recipient)
print(streetAddress)
print(suburb, state, postcode)