Write a function that takes as input a person’s name, city, state, zip code, and address, where the address is either one string (one line) or two strings (two lines), and prints the person’s information like a mailing label. Show that the routine works regardless of whether it is called with one address line or two address lines.

Answers

Answer 1

I realized you needed this in python.

def func(name, city, state, zip, address1, address2):

   print(name)

   print(address1)

   if address2 != "":

       print(address2)

   print(city + ", " + state + " " + zip)

func(input("Enter your name: "), input("Enter your city: "), input("Enter your state: "), input("Enter your zip: "),

    input("Enter the first part of your address: "),

    input("Enter the second part of your address: (simply press enter if not applicable) "))

This works for me. If you come across any errors, I'll do my best to help out. Best of luck.


Related Questions

how do you make a triangle on art.kano.com

Answers

Umm, I guess you just try to do one? I don't know.. Sorry if I couldn't help out.

I believe you can do it!

Answer: I would watch a YouT-ube video on a tutorial on doing that

But i am pretty sure it involves coding

Explanation:

Can someone answer this for me will award brainliest lol

Answers

Answer: Without GUI's being developed, we most likely would still be using terminal systems. Terminals require command/text input rather than mouse or  other input. The invention of GUI's enabled people to use simpler input methods, rather then clunky text input systems. To sum, GUI's simplified the computer experience as we know today.

Hope this helped :)

Why is it important to plan out the design of an app?

Answers

Answer:

you could mess it up

Explanation:

let me explain an app may be easy if you know what your doing. if you dont you most likely might miss a code or mess up the hole code.

Other Questions
Why did the National Geographic Channel consider Taipei 101 to be one of the worlds seven most challenging engineering projects in 2003?a.because Taiwan gets hits by typhoons and earthquakesb.because the Taipei 101 would cost too muchc.because there was not enough steel availabled.none of the above Which is the best example of the use of imagery in a sentence?Alexandra noticed the sweet scent of a single red rose that had been placed in a small vase in the center of thedining room table.Alexandra thought she might go for a walk later in the afternoon after she had finished her homework.O Because she had practice after school and a lot of homework, Alexandra had been fairly busy all day.O Her science teacher thought that Alexandra had done a really good job on her animal classification project. A shirt at the store is being offered at a 10% discount. If the original price of the shirt is x, which answerchoice shows an expression that represents the discounted price of the shirt?0.90xX + 0.10x1.10x0.10x A small sculpture made of gold ( rho gold =19320 kg/m^ 3 ) is believed to have a secret central cavity. The weight of the sculpture in air is 11.29 N. When it is submerged in water, the weight is 9.190 N. What is the volume of the secret cavity? Fossil fuels were formed when living things (plants and animals) died and their remains were broken down. This is an example of _______.A. CombustionB. DecompositionC. PhotosynthesisD. Cellular Respiration Write a narrative nonfiction story Why does the author describe both the positive and negative reactions of autistic children to the robot Bandit? Help me please !! Given: P: S, PQ=ST, Q= What is HB? Triangle Mid-segment Theorem how do you do multiplication in 7th grade mathimatics If Jasper can walk1/2mile in 1/4 hour, how long will it take him to walk 1.5 miles? Job description: design maps, charts, and drawings of the earth's surface supervise and design maps and coordinate the mapmaking process analyze and evaluate information from maps work with geographical information systems (GIS) to see, model, and analyze landscape features capture, maintain, and generate digital geographic data check and appraise the content and accuracy of maps and charts 4 Select the correct answer. Which contemporary art career best fits this description? A. digital designer B. cartographer C. landscape architect D. graphic designer Pretty please help me:) 5 A Science 5. What do we know about the dark patches on the moon's surface.They are deep impact craters.They are high mountains.They are high plateaus.They are deep dry plains 1Who became President of Mexico after Bustamante resigned?2How did the Battle of Velasco end?3Who was arrested in Mexico because of a letter he had sent back to Texas?4What was the 1st battle of the Texas Revolution?5What were the words on the flag that flew by the cannon at the Battle of Gonzales? 6What was the outcome of the Siege/Battle of San Antonio de Bexar?7Who was the sole author of the Texas Declaration of Independence?8who was selected as ad interim president of Texas during the Texas Revolution?9Who replaced Colonel James C. Neill as commander at the Alamo?10When did the Battle of the Alamo begin AND when did it end?I'm sorry if I'm asking to much, I need this to pass. Thank you, What are the powers theConstitution gives to the fed-eral and state governments? Find slope plz and ty!! What is an accurate description of aerobic respiration?a process that uses oxygen to break down molecules to absorb energya process that uses oxygen to break down molecules to release energya process that breaks down molecules without the use of oxygen to absorb energya process that breaks down molecules without the use of oxygen to release energy Anyone know this question.I need help quick.Thanks. What is the image of (3,9) after a reflection over the line y = x?