Part 2: Code the Program Use the following guidelines to code your program. 1. Use the Python IDLE to write your program. 2. Using comments, type a heading that includes your name, today’s date, and a short description. 3. Set up your def main(): statement. (Don’t forget the parentheses and colon.) 4. Use at least two variables and two print statement to display your message to the screen. 5. Conclude the program with the main() statement. 6. Follow the Python style conventions regarding indentation in your program. 7. Run your program to ensure it is working properly. Fix any errors you may observe. Example of expected output: The output below is an example of a “Favorite TV Show” message. Your specific results will vary depending on the choices you make about your message. Output My favorite TV show is MythBusters. I like it because I learn a lot and they do crazy experiments. When you've completed writing your program code, save your work by selecting 'Save' in the Python IDLE. When you submit your assignment, you will attach this Python file separately.

Answers

Answer 1

# Replace this with your name, date, and a short description

def main():

   x = "My favorite book is python for dummies."

   y = "I like it because it introduces new python topics."

   print(x)

   print(y)

if __name__ == "__main__":

   main()


Related Questions

4.5 Code Practice


Write a loop that inputs words until the user enters STOP. After each input, the program should number each entry and print in this format:

#1: You entered _____
When STOP is entered, the total number of words entered should be printed in this format:

All done. __ words entered.

Sample Run
Please enter the next word: cat
#1: You entered cat
Please enter the next word: iguana
#2: You entered iguana
Please enter the next word: zebra
#3: You entered zebra
Please enter the next word: dolphin
#4: You entered dolphin
Please enter the next word: STOP
All done. 4 words entered.

Answers

In python 3:

i = 0

while True:

   word = input("Please enter the next word: ")

   if word == "STOP":

       break

   i += 1

   print("#{}: You entered {}".format(i, word))

print("All done. {} word(s) entered.".format(i))

I hope this helps!

The program is an illustration of loops.

Loops are used to perform repetitive operations.

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

#This gets input for the first word

word = input("Please enter the next word: ")

#This initializes count to 0

count = 0

#The following iteration is repeated until the user enters "STOP"

while word != "STOP":

   #This prints the word entered

   print("You entered",word)

   #This increments count by 1

   count += 1

   #This gets input for the next words

   word = input("Please enter the next word: ")

   

   

#This prints the count of all words

print("All",count,"words entered!")

At the end of the program, the number of valid inputs is printed.

Read more about similar programs at:

https://brainly.com/question/18283451

Which of the following is not expected of employees’ oral communication skills in the workspace

Answers

Answer:

Yes, choose C since it's not an oral requirement, but a written one.

The oral communication skills in the workspace should not involve writing.

The information regarding oral communication skills is as follows:

Active listener.Clarification.Asking open-ended questions.In this, the communication could be done in a clear way.The appropriate language should be used.Also, the laws & regulations should be communicated.

Therefore we can conclude that the oral communication skills in the workspace should not involve writing.

Learn more about the communication here: brainly.com/question/12349431

what do you call the two parts of lift that go down a mine

Answers

The sheave wheel is a pulley wheel that sits above the mine shaft. The hoist cable passes over the sheave wheel and then down the shaft of the mine.
(copied from google)

Which selling method is most likely to irritate potential customers? A. Running a trade fair booth B. Cold calling C. Running a flea market booth D. Telemarketing to people who are interested in the product. ​

Answers

Answer:

B

Explanation:

Answer:    B.   Cold Calling

Explanation:

In business, cold calling means to contact people who haven't actually proved to be interested in their products/services. A salesperson may try cold calling to try and convince the person to be. This may be irritating to potential customers because instead of finding it out for themselves, the salesperson is shoving information down their throats.

I hope this helped!

Good luck <3

Which of the following statements are true regarding cognitive impairments? Select 3 options.
Speech input devices help those who are cognitively impaired understand the contents of the screen.
Delivering content in different ways, such as using video, animations, and text, helps promote cognitive accessibility.
To improve cognitive accessibility, the developer should focus on a clear and consistent design.
Even though there are different causes for cognitive impairment, many of the resulting functional issues are similar.
Cognitive issues are learning disabilities caused by genetic disorders.

Answers

Answer:

The correct options are;

Delivering content in different ways, such as using video, animations, and text, helps promote cognitive accessibility

To improve cognitive accessibility, the developer should focus on a clear and consistent design

Even though there are different causes for cognitive impairment, many of the resulting functional issues are similar

Explanation:

Cognitive impairment is the condition of a person having difficulty in concentrating, learning, recalling from memory, or making functional decisions. Depending on the severity, cognitive impairment may be classified as severe or mild

Symptoms includes, loss of memory, asking the same questions or telling the same story frequently, unable to recognize people they already know, or places they have already been to, having problems with vision and being unable to plan or see tasks through

Answer:

The correct options are;

Delivering content in different ways, such as using video, animations, and text, helps promote cognitive accessibility

To improve cognitive accessibility, the developer should focus on a clear and consistent design

Even though there are different causes for cognitive impairment, many of the resulting functional issues are similar

Explanation:

Dave is a website administrator and manages several websites and a couple of blogs. One of his primary concerns is secure data transfer. Which telecommunication component can help Dave and other users to encrypt data?

Answers

Answer: C:Control Software

Explanation: The test said so

How Do I connect my apple keyboard to my computer? BTW it's saying that cannot connect to the device.

Answers

Answer:

try the bluetooth one

Explanation:

hope it works

Try with Bluetooth connection or else if the keyboard is wireless, one small pen drive like thing they have given so attach it in your computer, it will surely work.

what is the 3rd streak fun fact from brainly

Answers

Answer:

it is something like you life time saliva can fill up two swimming pools i think

Answer:

During your lifetime, you will produce enough saliva

Sending or receiving information between two
more person
.technical term​

Answers

Two-Way Communication

Create a summary of no less than 125 words of a show that would NOT go over well with television producers because it is targeted to people in the least desirable groups. Include the title of the show, the main characters, and a description of the show's premise. Explain why this show would NOT go over well with television producers.

Answers

Answer:

Follows are the solution to this question:

Explanation:

Its Mid is also an American drama about a Kentucky-based middle-class family who've been struggling to live in an impoverished house, home and earn children on even a daily basis. Mike and Frankie, both live in Orson, Indiana, were mid-aging adults. Users got three kids named Axl, Sue, and Brick. Michael was its owner of a local quarry as well as Frankie, the seller of a motorcycle. It was great for Scriptwriters since it is related to America's many households, a middle and upper-class family. Despicable is an American dramedy about an impoverished and unstable Chicago family.

It among participants is Frank, Gallagher's dad, but Fiona, their household's oldest son, as she actual mom Monica goes up and down as she likes. The other five children of Gallagher are Lips, Yan, Debbie, Lori, and Liam.

Frank is an alcoholic, but Fiona works very hard and provides for her sisters and brothers. It is not used for scriptwriters, because it is related to the poor and victims of abuse of drugs, which aren't considered "wanted." Since that concerns an "unwanted" listeners, its show was indeed a success.

What is the quickest way to remove all filters that have been applied to a worksheet?

Answers

Answer:

Click the Filter button in the Sort & Filter group.

Explanation:

Quizlet

Go to the filter option, click sort/filter and unfilter.

the hardware device that allows the user to see the results after processing is the monitor,scanner,webcam,Camara​

Answers

Answer:hey

Explanation:

A device is one that is an external device and includes Printer, monitor, keyboard, and scanner. The input device includes the mouse and other point devices.

The camera is also an input device, a web-cam is a external device. The external device that lets the user see the output or the result on the screen is monitor.

Hence the option A is correct.

Learn more about the device that allows the user to see the results.

brainly.com/question/25756373.

um can anyone who is really into science and physics answer this question

Answers

Answer:

What question?

Explanation:

What will be the output of the following program? Assume the user responds with a 3.

answer = input ("How many shirts would you like? ")
priceShirt = 4.00
intNumberShirt = float(answer)
moneyDue = intNumberShirt * priceShirt
print ("You owe $" + str(moneyDue))

You owe $ 12.0

An error occurs.

You owe $12.0

You owe $ moneyDue

Answers

If the user responds with 3, the output will be:

You owe $12.0

Answer:

You owe $12.0

Explanation:

4. How could you apply some of the ideas, principles, or structures of coding to fields of study, industries, or tasks outside of creating computer programs? Propose at least one way to use "coding" or creating programs outside of computer science and explain how it uses coding-related concepts.

Answers

Answer:

a production plant

Explanation:

"Coding" brings with it a linear way of thinking and problem solving, where one step needs to be taken before moving on to the next step. This can be applied to a wide range of real-life scenarios and industries. For example, a production plant starts with an initial input, that input is taken and used in a set of instructions (method), those instructions take that input and create a new output. Once the new output is created it is then passed on to another set of instructions that takes that output as an input to create a new output. Just like a computer program, a power plant repeats this process in order to a fully working and realized product.

how to create a code in pyton to ask the user to enter the number of switches and calculate the possible outcomes that can come from those many numbers of switches(on/off). Please help me with this​

Answers

amount = int(input("How many switches? "))

if amount == 0:

   print("There are no outcomes for 0 switches")

else:

   print("With {} switch(es), there are {} outcomes.".format(amount, 2**amount))

What file format is used to help prevent other people from editing a final document?
RTF
TXT
PDF
PWP

Answers

Answer:

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

Explanation:

The correct answer to this question is PDF.

Because PDF file format does not allow you to edit something in it. It prevenst others from editing in it. In a PDF file, you cannot add text, pictures, etc as like in a word document.

Why other options are not correct.

In RTF (rich text format) and TXT file format, you can easily edit the content in these file formats. Furthermore, RWP  files are the storage of the contents of these RapidWeaver websites. All the website contents are saved using this format that includes information about images, pages and style sheets, etc, and information in it can be easily editable.

Which of the following are examples of formal education? Check all of the boxes that apply. attending a college course at an accredited college attending a continuing education course reading a nonfiction book following a blog of an expert in the field​

Answers

the answers are:

- attending a college course at an accredited college

- attending a continuing education course

Examples of formal education will be attending a college course at an accredited college and attending a continuing education course.

What is formal education?

Formal education is the organized educational concept that integrates specialized training for occupational, academic, and formal development and goes from elementary (and in some countries, from nursery) school through university.

Features of formal education are given below.

The organization of formal schooling is pyramidal.It is purposeful and well-planned.Planned fees are consistently paid.Its grading scale is based on time.It is curriculum-driven and subject-focused. The syllabus has to be covered within a specific time period.The professors instruct the youngster.

Studying a degree course at an approved university or taking an ongoing education course are forms of formal education.

More about the formal education link is given below.

https://brainly.com/question/16642972

#SPJ2

Complete the sentence.
use only apps acquired from app stores.
PLEASE HELP

Answers

Answer:

that's a hard one maybe u should email ur teacher bc the punctuation on that is fine and it's not an incomplete sentence

Ccccccccccccccccccccccc

Josh needs to write a research report for his Civics class. Which file type will allow him to save his file?
A: DOC
B: GIF
C: JPG
D: ZIP

Answers

answer is Doc type format

Answer:

Josh would have to use a DOC as that will allow him to save his file.

Explanation:

DOC is a document file format, basically, a typed file on your computer. It's the best place for anyone to edit their document.

What is the special set of characters that indicates the start and end of an HTML element and that element's type?

Answers

the answer is HTML Tag

The HTML tag ..........

hey yall i need help with email plz explain to me what happened

Answers

Answer: Oh looks like they disabled it :/ you should wait a little while so they can fix it I’m guessing

Explanation:

Answer:

Hi, I can try to help you.

I am on the software development club of my high school, and I also attended a summer camp at Google's headquarters. The steps below are written by me.

Explanation:

I have lots of experience with computers and Google. Generally, this problem usually happens when there's too much happening with your google account. This could happen from too many devices being logged into your account, or from sending/receiving a very large amount of messages. One common thing that happens is that there can be too many cookies and your computer cache may become full.

I recommend taking these steps:

1. Make sure you're not logged into your account on too many devices. If you are, for example, logged into the account on an iPad, iPhone, Macbook air, and a Mac, then you need to log out of the account on the devices you're not using at the time.

2. Clear your browsing history and cache. On a Macbook, just go to the top bar and click "History." Then, click "Show Full History" and then click "Clear Browing Data and Cache." This can resolve the issue.

3. If the issue is not resolved, restart your computer. This helps by rebooting your computer, and often you just need to restart it to resolve the issue.

4. If that hasn't worked, then I recommend that you wait. Generally, Google will unfreeze your account in a couple hours or so. If the above steps don't work, I recommend just waiting it out.

I hope this helps! If you feel this helped, feel free to give me Brainliest. :)

A company gives you a document to review. This document lays out the strengths and weaknesses of a proposed business venture. It also evaluates the venture's potential for success. Which option best describes this document you are reviewing?

Feasibility analysis
Project prototype
System model
Requirements document

Answers

Answer:

The answer to this question is given below in the explanation section. However, the correct option for this question is Feasibility analysis.

Explanation:

The correct option for this question is feasibility analysis. Because in a feasibility analysis document, you can specify the weakness, strength, strategy, and plan for a specific business venture. This document also represents the validation and evaluation of the business venture that you are going to start or proposed. Basically, a feasibility document represents a feasibility study of the practicality of a proposed project or system.

Other options are not correct because:

A project prototype is a tool that can be used to get early feedback from customers/clients on what you are going to be developing. The system model represents the model or abstraction of the system while the requirement document is used to communicate the aims of a project/program/product or service in a clear, concise way to ensure all stakeholders are on the same page.

stniop eerf lol guess what it says

Answers

Answer:

boop free points lolololol

Explanation:

What type of space is often the main focal point of the composition in graphic design?

Answers

Answer:

Positives

Spaces

Explanation:

It’s positive spaces I got it correct.

my school blocked a lot of gaming websites.. do you have any good games that are unblocked???

Answers

Answer:

Well, it depends some systems are more strict... Krunker wasn't blocked now it is for a different district. But, the Google Doodle games are never blocked. Try the Ghost Game 2016 from Google... Or the Snake Game, or Pac Man. There are a few others like Solitaire. Browse the Google Doodles.

Hope this helps!

Answer:

cliker heros and cool math games are some

Explanation:

what happened to Ariana grande that took a toll on her mental health and changed her life. (3 answers and its not her being famous)

Answers

Answer:

manchester bombing, death of her ex/bff

Explanation:

Answer:

Drugs

Explanation:

Which of these file formats would you choose if you had to create a vector graphic?
Graphic Interchange Format (gif)

Portable Network Graphic (png)

Adobe Illustrator (ai)

Microsoft PowerPoint (pptx)

Answers

Answer:

Don't know, but it's NOT (pptx)

Maybe you will have better luck than me Edge2020

The file format that one would choose if you had to create a vector graphic is Adobe Illustrator.

What is Adobe Illustrator?

This is known to be a kind of Software that helps in editing of vector graphics and it is also used in design program.

Based on the specification above, The file format that one would choose if you had to create a vector graphic is Adobe Illustrator as that is its work.

Learn more about Adobe Illustrator from

https://brainly.com/question/15169412

#SPJ2

"Currency" is a field data type ,it represents Date or time values
True or false tho?

Answers

Answer:

true

Explanation:

yall please help me in online school i only have 1 week to do it

its online by the way which is why it says computers and technology

Answers

Answer:

we cant see anything

Explanation:

Answer:

add meh back

Explanation:

pls

Other Questions
do you remember the moment when someone help you when you were in trouble ignore my answer.... Use technology to solve the following problem: The lifetime of a certain type of automobile tire (in thousands of miles) is normally distributed with mean = 38 and standard deviation = 7. What proportion of tires have lifetimes between 36 and 46 thousand miles? Cesar Diaz begged his neighbor to lend him platform shoes. Which were the hottest new fad at the disco club.is this a complete sentence or a fragment ASAP PLZ HELPA car traveling 65 kilometers per hour travels 195 kilometers. How long did it take the care to travel that distance at that speed? What is the awnser??????? I need help!!!!!! STATER: Ranking the importance. Rank the following causes of war from most to leastimportant.Nationalism Assassination Militarism Imperialism Alliances helppppp These were not merely "friendly Indians.How does this quotation from "Thanksgiving A Native American View affect the authors argument?The author is arguing that the American Indians were able to help the Pilgrims, because they were sophisticated.The author is arguing that the American Indians were nice, and that is why they helped the Pilgrims.The author is arguing that the Pilgrims were not friendly, in contrast to the American Indians.The author is arguing that neither the Pilgrims nor the American Indians were friendly. Which description correctly identifies the difference between political appointees and civil service workers?A.Political appointees work for the government, while civil service workers work for the president.B.Political appointees work for the military, while civil service workers are civilians.C.Political appointees get their jobs through the merit system, while civil service workers get their jobs through the spoils system.D.Political appointees get their jobs from the president, while civil service workers get their jobs based upon their ability. account of Mark Twains experiences as a riverboat captain.I soon discovered two things. One was that a vessel would not be likely to sail for the mouth of the Amazon under ten or twelve years; and the other was that the nine or ten dollars still left in my pocket would not suffice for so imposing an exploration as I had planned, even if I could afford to wait for a ship. Therefore it followed that I must contrive a new career. The "Paul Jones was now bound for St. Louis. I planned a siege against my pilot, and at the end of three hard days he surrendered. He agreed to teach me the Mississippi River from New Orleans to St. Louis for five hundred dollars, payable out of the first wages I should receive after graduating. I entered upon the small enterprise of "learning twelve or thirteen hundred miles of the great Mississippi River with the easy confidence of my time of life. If I had really known what I was about to require of my faculties, I should not have had the courage to begin. I supposed that all a pilot had to do was to keep his boat in the river, and I did not consider that that could be much of a trick, since it was so wide. Which statement best summarizes the passage?Twain feels confident about learning the Mississippi River.Twain finds that piloting a riverboat is not as easy as it looks. Twain convinces his pilot to teach him how to navigate a riverboat. Twain is concerned about not having enough money to survive. someone pls help, find the length of the segment please help! i would appreciate it! What impact of not being a more farming based region made New England unique?A.More of their population lived in towns and small citiesB. They often lacked enough food to feed themselvesC. They were not able to trade with other countries like the other regions wereD. They did not have as much money and prosperity Whats the answer? I will give brainliest if correct Please help Im not sure what it is dont make fun Im not good at math What type of glass is heat resistant?A.leaded glassB.tinted glassC.borosilicate glassD.tempered glass Find the value of xA-6B- 4C- 11D- 5 2. Tamara has to go on a business trip. Including taxes, her round trip airfare is $400 and her room costs $150 per night. The cab fare from the airport to the hotel is $40. If Tamara stays for two nights, how much does the trip cost, not including the cost of food? Chasing by NF. Your opinions. Pls help I just need 4 or 5 sentences for a pre writing about a Greek mythical character