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 i know if someone s photo is fake are there any apps idk

lol​

Answers

Answer:

or you can just search the picture up and if you find it online then it's fake, or you can check Pinterest.

40 POINTS
Seth, a zoologist, has a spreadsheet containing data on all the animals in a zoo. He wants to sort the column that contains the weights of all of the animals. Which sort tool could he use to reorganize the numbers so they are listed from smallest to largest?
sort descending
custom sort - font color
sort ascending
custom sort - columns

Answers

Answer:

Its A

Explanation:

Sort ascending tool could he use to reorganize the numbers so they are listed from smallest to largest. So, the correct option is (C).

What are Spreadsheets?

A spreadsheet is defined as a computer application for the calculation, organization, analysis and storage of data in tabular form. These were developed as computerized analogs of paper accounting worksheets, where the program operates on data entered in the cells of a table.

It is a type of tool that is used to store, manipulate and analyze data. Data in a spreadsheet is organized into a series of rows and columns and can be searched, sorted, calculated, and used in a variety of charts and graphs.

From sorting out in the spreadsheet from smallest to largest, sort ascending tool is used.

Thus, sort ascending tool could he use to reorganize the numbers so they are listed from smallest to largest. So, the correct option is (C).

Learn more about Spreadsheet, here:

https://brainly.com/question/8284022

#SPJ2

PLEASE HELP!!!
Why are Blackberry phones good?

Answers

The Key2 has excellent build quality, thoughtful software additions and a keyboard that purists will adore. ... Battery life is above average and it runs much faster than the KeyOne, but the BlackBerry Key2 is very much a phone for a select few people who still must have a keyboard – and no one else.

Which statements are true about a database?


A database allows only numeric entries.



You cannot upload image files to a database.



You can enter data based on the defined data type.



You cannot leave a field empty.



A primary key uniquely identifies a record.

Answers

Answer:

You can enter data based on the defined data type.

A primary key uniquely identifies a record.

Explanation:

In a database, you can only enter data that matches the data type you have specified for that field. Therefore, you can enter text in fields with the text data type; numbers in fields with the number data type; or images in fields with the BLOb data type. You can have fields where data entry is optional. A primary key eliminates the chance of duplicate entries of the same record in a table.

What is a graphic unit

Answers

Answer:

If you mean a graphic processing unit:

A graphics processing unit is a specialized, electronic circuit designed to rapidly manipulate and alter memory to accelerate the creation of images in a frame buffer intended for output to a display device.

Hope this helps

Which are categories in the Number tab of the Format Cells dialog box. Check all that apply

General
Number
Currency
Date
Time
Percentage
Formula​

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct answer to this question is, you can find all categories except Formula in the Number tab of the Format Cells dialog box.

You can find the categories in the Format Cells dialog box as listed below:

General NumberCurrencyAccountingDate Time PercentageFractionScientificTextSpecial andCustom.

As you see in the above list, there is no Formula category given the Number tab of the Format Cell dialog box. So the correct options are:

General Number Currency Date Time Percentage

How do you give brainlest things out?

Answers

Answer:

when there are two answers to your question it should give you the option

Explanation:

hope this helps :3

if it did pls mark brainliest

Betty is developing a machine learning algorithm that looks at vast amount of data collected over 100 years and checks for relationships between humidity, temperature, and rainfall. what form of machine learning is she developing?

a. regression
b. association
c. big data
d. classification
e. clustering

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

Betty is developing a machine learning algorithm that looks at a vast amount of data that is collected over 100 years, and She also wants to check the relationship among variables such as humidity, temperature, and rainfall in the given data.

So, the correct answer to this question is b. She is developing an association machine learning algorithm.

Because the association tells the relationship between variables. She used the association to find the relationship among variables such as humidity, temperature,  and rainfall.

While the other options are not correct because:

Regression is used to find out the cause and effect relationship between dependent and independent variables. Big data is the biggest field of data analysis, so this option does not best suit this context. Classification is used to classify data, or organizing data into their related group. While clustering is the task of dividing the population into a number of groups such that populations in the same groups are more similar to other populations in the same group than those in other groups. so these are all incorrect options to this question except the "b" option i.e association.

Which of the following are valid variable names? Select 2 options.
A. Cost$4
B. 4thNumber
C. Fourth_number
D. Num4
E. $4cost
Please answer asap

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct options to this question are C and D:

Fourth_numberNum4

Because these are the correct and valid variable names.

Other options are not correct because these variables names either start with a number or contains special character such as $ sign.

The invalid variables are A, B, and E while the valid variable declare are options C and D.

4. are the outputs of a process, team or organization in the form of documents that enable effective actions. *

Answers

Answer:

The answer is "Knowledge Presentation ".

Explanation:

There are several descriptions of an idea of knowledge or learning. It may have a lecture segment about teaching or focusing on new team members.  

One of your points is education. Education, the entire e-learning is all about knowledge transfer.  you could be a trainer or a teacher, once you're talking about knowledge every moment you present this.  Adding the visual symbol with wisdom, which represents an idea of wisdom, allows the slides more attractive and more memorialized.

The deliverables of such a procedure or the organization throughout the manner of papers that facilitate better responses are referred to as Knowledge presentations.

Knowledge, as well as skills training, is mentioned several times in demonstrations. You should also include a segment in your presentation regarding educating and transitioning members of the department.Including a visual symbol expressing understanding or a notion of understanding in your presentations may contribute to making them more interesting and memorable.

Thus the above approach is appropriate.

Learn more:

https://brainly.com/question/17871896

Explain the process of creating a chart using chart wizard dialog box

Answers

Answer:

Open an Excel worksheet that has rows and columns of data. ...

Select the cell range containing the data to be charted. ...

Create the chart by clicking the Chart Wizard button on the standard toolbar.

The Chart Wizard starts at Step 1 by asking what type of chart to make (see screen shot ).

DECIPHER AND SOLVE THIS

SCC:R
D
YJOTE VP=GPIMFRT

Answers

Um.... alrighty then

* 8) Embedded operating systems are specialized software meant only to manage the
resources of the specific device for which they were written, True or false?
True
False

Answers

Answer:

True

Explanation:

Embedded operating systems are operating systems which supports hardware which is not a computer and allows the hardware to perform its task.

An example of a device with an embedded operating system is an SD card. The operating system on the card allows the card to be readable by the computer which its is plugged to.

Other examples of hardware with embedded systems are traffic lights, digital televisions, ATMs, point of sale (POS) and digital cameras.

Lucas wants to expand his vocabulary to better understand the sentence below. The insidious burglar moved through the house unheard and unseen. Which clue best helps define insidious? burglar, unheard and unseen, moved through, house

Answers

Answer:

B unheard & unseen

Explanation:

Answer:

B is correct because the top one said so

Explanation: :)

Tricia is managing tasks that have been assigned to her. She needs to enter mileage information in relation to a
project. Which command must she use to access this option?

-Task
-Details
-Assign Task
-Send Status Report

Answers

Answer:

send status report

Explanation:

edge nov 2022

She must use the command "Task"  to access this option. The correct answer would be an option (A).

What is a task manager?

Task Manager displays which programs are running on your Windows computer and provides limited control over those processes.

Tricia can use the "Task > Details" command to access the option to enter mileage information related to a project. This option provides a space for Tricia to enter additional information about a task, such as the mileage information she needs to record.

The "Task > Details" option can typically be found within the task management software or tool that Tricia is using. By accessing this option, Tricia can enter the necessary information to accurately track the mileage information for a project.

The "Assign Task" and "Send Status Report" commands are not directly related to entering mileage information for a task.

Thus, the correct answer would be an option (A).

Learn more about the task manager here:

https://brainly.com/question/29103180

#SPJ6

How do I dust my computer?

Answers

Answer:

Step 1: Turn off your computer and unplug it from the electrical outlet or surge protector.

Step 2: Open up your computer's case.

Step 3: Using compressed air, dust the internal components of your computer with short bursts of air. ...

Step 4: Remove the dust buildup on your case fans with a can of compressed air.

Guitar players calling their guitar an "axe" in the company of their bandmates is an example of:
A. creating an acronym for simplicity.
B. a bromance relationship.
C. using slang in a community.
D. an instant-message chat.

Answers

Answer:

The answer is A

Explanation:

Can someone help me with number 4 will award brainliest

Answers

Answer:

(Read Below)

Explanation:

System managers manage all efficiency tasks, but personally I think that the allocation of system resources is the most useful task the system manager performs. This is because if system resources weren't optimally managed, performance would drop significantly.  (Hope this helped! :))

the first answer is totally correct I stand by it

what generally occurs in an economy as specialization increases

Answers

It's very obvi that the answer is when the economic impact of specialization can be seen in the propensity for people to choose different missions that are more "in line" with their interests, talents or skills, chances and education

An installation is:
please help asap

Answers

Answer:  an installation is the act of putting something in, a device that stays in one place, a military base, or an art piece that often involves building and different types of materials.

Explanation:

Getting your new air conditioner put in is an example of an installation.

I WILL GIVE BRAINIEST ANSWER AND THANKS IF YOU ANDWER THIS QUESTION!!!!

Which of The 9 Elements of Digital Citizenship do you feel is most important and why?

Answer in paragraph pls

Answers

Access: full electronic participation in society.
Commerce: electronic buying and selling of goods.
Communication: electronic exchange of information.
Literacy: process of teaching and learning about technology and the use of technology.
Etiquette: electronic standards of conduct or procedure.
Law: electronic responsibility for actions and deeds.
Rights & Responsibilities: those freedoms extended to everyone in a digital world.
Health & Wellness: physical and psychological well-being in a digital technology world.
Security (self-protection): electronic precautions to guarantee safety.

IMPORTANT
Etiquette. Students need to understand how their technology use affects others. ...
Literacy. Learning happens everywhere. ...
Rights and responsibilities. Build trust so that if something happens online, students are willing to share their problems or concerns about what has happened.

Witch icon allows you to see paragraph formatting feature

Answers

Show/hide in paragraph section on word, it’s the last one on the upper right.

If an IT professional maintains who is added and removed from a network on a client-server network, would it be a benefit or a risk?

Answers

Answer:

A. IT professional, who maintains the network, must be added and removed from the network. - risk

B. Clients work independently; therefore, if one computer is not working, other computers can still do their jobs.  - benefit (scalability is always a benefit)

C. Security levels are set up by individuals; therefore, these networks may not be as secure. - risk

D. There is no need for a big IT department to keep the network up and running. - benefit (it is simple for maintenance)

Explanation:

Write a calculator program that will allow only addition, subtraction, multiplication & division. Have the
user enter two numbers, and choose the operation. Use if, elif statements to do the right operation based
on user input.

Answers

num1 = float(input("Enter the first number: "))

num2 = float(input("Enter the second number: "))

operation = input("Which operation are you performing? (a/s/m/d) ")

if operation == "a":

   print("{} + {} = {}".format(num1, num2, num1+num2))

elif operation == "s":

   print("{} - {} = {}".format(num1, num2, num1-num2))

elif operation == "m":

   print("{} * {} = {}".format(num1, num2, num1*num2))

elif operation == "d":

   print("{} / {} = {}".format(num1, num2, num1/num2))

I hope this helps!

Pls help... : Slide layouts can be changed by _____.


selecting new layout from the Tools menu

selecting new layout from the Edit menu

selecting a new layout from the Task pane

selecting a new layout from the Slide pane

Answers

Answer:

Selecting a new layout from the task pane

Explanation:

selecting a new layout from the Task pane

kekw

what is word processing in excel

Answers

Answer:

Microsoft Excel and Microsoft word are the part of the MicrosoftOffice Package of productvity software.

A ___________ variable is used to add up a set of values. fill in the blank

Answers

Answer:

dependent variable -- As it depends on the other variables, changes when they change

The sum variable should be used for adding the set of values.

The following information regarding the sum variable is as follows;

It is the variable i.e. used for adding the values.In this, the values are added so that the final answer could come.In excel, the sum formula is like = sum().

Therefore we can conclude that the sum variable should be used for adding the set of values.

Learn more: brainly.com/question/19585043

Why am I doing this investigation?​

Answers

Answer:

what investigation......

Answer:

what? which one.. ??sounds interesing

3.6 code practice (edhesive)

Answers

largest = int(input("Enter a number: "))

print("Largest: {}".format(largest))

i = 0

while i < 5:

   num = int(input("Enter a number: "))

   if num > largest:

       largest = num

   print("Largest: {}".format(largest))

   i += 1

I hope this helps!

The program illustrates the use of conditional statements and iterations

The complete program in Python is as follows, where comments are used to explain each line.

#This gets the first input from the user

userNum = int(input("Enter a number: "))

#This prints the first input as the largest

print("Largest:",userNum)

#This assigns to largest, the value of userNum

largest = userNum

#The following iteration is repeated 5 times

for i in range(5):

   #This gets another input from the user

   userNum = int(input("Enter a number: "))

   #This checks if current input is greater than the current largest input

   if userNum > largest:

       #If yes, this assigns to largest, the value of userNum

       largest = userNum

   #This prints the current largest input

   print("Largest:",largest)

In each iteration, the program prints the current largest input

See attachment for the sample run

Read more about iteration and conditions at:

https://brainly.com/question/18809878

how to implement domain controller?​

Answers

Answer:

Log in as an administrator to the Windows 2000 or 2003 server host.

From the Start menu, go to Administrative Tools > Manage Your Server. ...

Install the Active Directory Domain Controller. ...

Install Windows Support Tools. ...

Create a new user account. ...

Create a user account to map to the Kerberos service.

Explanation:

google

Answer:

Log in as an administrator to the Windows 2000 or 2003 server host.

Other Questions
Determine whether a quadratic model exists for each set of values. If so, write the model. f(-2)=16, f(0)=0, f(1)=4 Factoring x puzzle practice plz help Can someone please compare and contrast the Republic of India, the communist state of the People's Republic China, and the constitutional monarchy of Japan. ITS FOR 30 POINTS What was the most significant effect of the growing railroad system?A. The South grew wealthier than the NorthB. Railroads stimulated economic developmentC. The North transported more goods through shippingD. Entrepreneurs stopped investing in roads and canals Which phrase represents the graph below?A runner in a sprint race A person jumping on a trampoline Both of the above Neither of the above What is the variable for the equilibrium constant? Enlightenment thinkers questioned traditional ideas about government. medicine. religion. science. the ratio of 5 more than a number to 20 less than that number is 8:3. What is the number? Danelle needs to sell candy bars for a club bars for a club fundraiser she starts with 72 candy bars and begins selling at a constant rate of 8 bars each day bob buys a t-shirt for $7.45 he pays with a 20 bill. how much change will he get? HELP How do you know when a claim is a negative claim? The diagram shows a triangle.6834CWhat is the value of c? Mr. Martinez's limo drove 15 miles south to Candy Land for some delicious gumdrops, then 5 miles east to Chuck E. Cheese for some scrumptious pizza. How far is Mr. Martinez from his starting point? Round your answer to the nearest tenth if necessary. Which sentence would be inappropriate in an informational piece of writing with a formal tone?A: People find Shakespeare's Pericles, Prince of Tyre boring and annoying because it's possible that he didn't even write the entire play.B: Thirty-nine plays, a combination of comedies, histories, and tragedies, are attributed to William Shakespeare.C: William Shakespeare, a poet, and playwright have generally deemed the greatest writer in the history of the English language.D: Scholars speculate that Hamlet may have been informed by the relationship between Shakespeare and his son Hamnet, who died at eleven years of age. I am a strong person and this girl thinks that she can say rude things about my family and i have tried to be nice about it but she won't stop so should i get into a physical altercation with her or should i continue to let her tarnish my family's reputation a stock has a price of $58.63. This is $5.92 less than the price of stock yesterday. Write and solve an equation to find the price p (in dollars) of the stock yesterday. Luis bought stock at $63.30. The next day, the price increased $12.80. This new price changed by 6 3/4% the following day. What was the final stock price, rounded to the nearest cent? Is your answer reasonable? Complete the explanation. help me of i die so pls help me help please idk what to do What would happen to the air pressure on Earth's surface if the density of Earth's atmosphere were to suddenly double?A. The air pressure would decrease by half. B. The air pressure would increase 2X. C. The air pressure would stay the same. D. The air pressure would increase 4X.