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

TASK: Write a static method called repeatString that takes as input a String parameter word followed by an int parameter num. It should return a String that would be the result of repeating word exactly num times. If num is 0 or negative, the method should output an empty string.


HINT: Don't print out anything! Your method should return a string, not print it. print the output of your method behind the scenes to check that your method returns the right string; if you add your own print statements then the output won't be correct.


HINT: Make use of String concatenation!

Answers

Answer:

Follows are the method definition to this question:

public static String repeatString(String word, int num)//defining a String method repeatString that takes two parameters

{

   String Val= "";//defining String variable Val

   for(int x = 0;x<num;x++)//defining for loop to calculate number of string

   {

       Val=Val+word;//hold calculated value in Val

   }

   return Val;//return Val value

}

Explanation:

Follows are the full code to this question:

import java.util.*;//import package for user input

public class Main//defining class Main

{

   public static String repeatString(String word, int num)//defining a String method repeatString that takes two parameters

{

   String Val= "";//defining String variable Val

   for(int x = 0;x<num;x++)//defining for loop to calculate number of string

   {

       Val=Val+word;//hold calculated value in Val

   }

   return Val;//return Val value

}

public static void main(String[] ar)//defining main method

{

   int num;//defining integer variable

   String word; //defining String variable

   Scanner on=new Scanner(System.in);//creating Scanner class Object

   System.out.print("Enter numeric value: ");//print message

   num=on.nextInt();//input value

   System.out.print("Enter String value: ");//print message

   word=on.next();//input value

   System.out.print(repeatString(word,num));//call method and print its return value

}

}

Output:

Enter numeric value: 3

Enter String value: data

datadatadata

Description:

Inside the main class,  a static string method "repeatString" is defined that accepts two parameters "word and num", in which one is a string and one is an integer.

Inside the method, the string variable "Val" is defined, which uses the "for" loop to calculate the number of string and store its value in the variable.

In the main class, the above two variables are defined, that uses the Scanner class object for input the value and pass into the method and print its value.

Which devices typically generate computer output? monitor, printer, speaker, projector, keyboard mouse, printer, speaker, projector, Braille embosser monitor, webcam, speaker, projector, 3D printer monitor, printer, speaker, projector, Braille embosser

Answers

The devices are monitor, printer, speaker, projector, Braille embosser. The correct option is 4.

What are output devices?

Any piece of computer hardware that converts information into a human-perceptible form or, historically, into a physical machine-readable form for use with other non-computerized equipment is considered an output device. Text, graphics, tactile, audio, or video can all be used.

A monitor displays visual output, such as text and images, on a screen.A printer creates physical output on paper or other media, such as text and images.Music, sound effects, and spoken words are all produced by a speaker.A projector projects visual information onto a screen or other flat surface.A Braille embosser generates output in Braille format, which people who are blind or visually impaired can read.

Thus, the correct option is 4.

For more details regarding output devices, visit:

https://brainly.com/question/13014449

#SPJ1

Your question seems incomplete, the probable complete question is:

Which devices typically generate computer output?

monitor, printer, speaker, projector, keyboard mouse, printer, speaker, projector, Braille embosser monitor, speaker, projector, 3D printer monitor, printer, speaker, projector, Braille embosser

Write the code for an if statement that adds 5 to the variable num1 if the value stored in the variable testA equals 25. Otherwise subtract 5 from num1.

Answers

In python

if testA == 25:

    num1 += 5

else:

    num1 -= 5

I hope this helps!

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 ..........

What are the key ideas in dealing with a superior?


respect and ethics

respect and understanding

respect and timeliness

respect and communication

Answers

Respect is a key requirement for a healthy work environment. It promotes teamwork and increases productivity and efficiencies in the workplace. It lets employees know they are valued for their abilities, qualities and achievements, and that their role is important to their company's success.

Answer:

respect and ethics

Explanation:

Help ASAP!!Choose all the basic elements of algorithms. A.Selection B.Loops C.Flow Charts D.Sequencing E.Combinations F.Iteration

Answers

Answer:

b c d

Explanation:

Answer:

A, C, E, F

Explanation:

Just took the test

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRST AND CORRECTLY.
How do you add text to a blank slide layout?

Select text from the Insert menu.
Click in the Task Pane and insert text.
You can't add text to a blank slide layout.
Draw a text box and enter text.

Answers

\The answer is B; Draw a text box and enter text

By default, we add text to a PowerPoint slide by typing it directly into a placeholder. However, you can use a text box to enter text into a blank slide or outside the placeholders. To add text on a blank slide click on the insert menu and select the Text box option. Click and hold down your mouse button while you drag the mouse. You will then clink inside the text box and starting typing.

this device can be used to type documents,send email,browse the internet,handle the spreadsheets,do presentations,play games,and more?​

Answers

Answer:

im pretty a computer

Explanation:

A computer is an electronic device that manipulates information, or data. It has the ability to store, retrieve, and process data. You may already know that you can use a computer to type documents, send email, play games, and browse the Web.

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.

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRST AND CORRECTLY.
select all that apply
What guidelines should you follow when adding graphics to your presentations?

They should be used to make a bad presentation better.
Graphics should appear on each slide.
Graphics should only be used when they improve the communication.
Their size should be appropriate for viewing by your audience.
They should be relevant and appropriate to the content.

Answers

Answer:

the third and the last one

i need help plz it keeps on happening and idk what to do


so right now im on my school computer and everytime i turn it on it shows this blue site and on the site it says something like anti-virus-protection. I dont need virus protection cause im on my school computer, then whenever i turn on chrome it closes the page i was on and then brings it bk on does anyone know what is happening or can help me//

Answers

I would probably try restarting/turning the computer off and on again first. If that doesn't work, you should probably contact a teacher to see if they can help you.

(and if you can't make it work, maybe try to see if you can use another computer)

Hope you can figure it out!

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.

Which is the faster cpu and why?

Answers

Answer:

Core i7 unlocked

Explanation:

This is known to not only be faster but also more stable.

Answer:

Intel Core i7 Unlocked has more GHz (gigahertz) along with an Octa core.

Explanation:

More gigahertz means your CPU would run all applications at a faster speed and be more efficient. Not only that, an octa core is much more efficient than a quad core. (Octa meaning 8 while Quad being 4).  

PLEASE HELP
Question #6
Multiple Select
Which of the following describes an application error? Select 2 options.
O Every time you try to run your new game, it crashes after displaying the opening screen.
After a recent Windows update, you can no longer access the internet on your laptop.
You see a message that the active application has stopped responding to input.
Nothing happens when you press the space bar on your keyboard, but the other keys are working.
Nothing happens when you press the Power button on your desktop PC.

Answers

Answer:

A and B

Explanation:

A: In this case, the application/game ran into an error not properly caught/not caught at all. Very little can be done about this error as it typically is a programatical error and not a end user error.

B: In this case, the error is within the Operating System(Windows) or a driver error. This can be fixed, either using troubleshoot or finding the driver to your Wifi Adapter and installing the newest update.

The statements that describes an application error are every time you try to run your new game, it crashes after displaying the opening screen and after a recent Windows update, you can no longer access the internet on your laptop. The correct options are a and b.

What is application error?

An application error is defined as a flaw in an application program that causes it to fail and terminate unexpectedly.

Specifically, application errors The Access Violation error is typically caused by your computer's inability to properly sequence the documents and settings necessary to run a specific program or installation.

Many distinctive issues can prompt a Windows program to refuse to respond, freeze, or become unresponsive.

A conflict between the program and the computer's hardware, a lack of system resources, or software bugs, for example, can cause Windows programs to stop responding.

When you try to run your new game, it crashes after displaying the opening screen, and you can no longer access the internet on your laptop due to a recent Windows update.

Thus, the correct options are a and b.

For more details regarding application error, visit:

https://brainly.com/question/14702194

#SPJ5

A publication created by a business or individual that is distributed on a regular basis - Weekly, monthly, or quarterly. Used to
provide informational updates to a specific club, group, organization, agency, or business

Answers

Newsletter

Hope this helps!

What is the purpose of a computer toolbar?

A. To alphabetize programs
B. To hold frequently used icons
C. To organize files
D. To view all files in the computer

Answers

Answer:

B

Explanation:

In computer interface design, a toolbar (originally known as ribbon) is a graphical control element on which on-screen buttons, icons, menus, or other input or output elements are placed. Toolbars are seen in many types of software such as office suites, graphics editors and web browsers.

The purpose of a computer toolbar is to hold frequently used icons. The correct option is B.

What is toolbar?

A Toolbar is a group of buttons or icons which are the integral part of the window or any software program's interface. Toolbar of the software program's interface has all commands under the menu bar.

In the computer interface, a toolbar has on-screen buttons, icons, menus. Toolbars are available in office suites, graphics editors and web browsers.

Thus, the purpose of a computer toolbar is to hold frequently used icons. The correct option is B.

Learn more about toolbar.

https://brainly.com/question/11496721

#SPJ2

The individual pages on a website should maintain a consistent layout and style from one page to the next.
True or False

Answers

Answer:

I think they should.

Explanation:

It would be very confusing for people using the website to go from one page to the next and have the two pages look completely different.

Answer:

True

Explanation:

Please answer quick:))))

Answers

I think B and the second one C

I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRST AND CORRECTLY.
All slides in a presentation must use the same transition.

True
False

Answers

Answer:

true

Explanation:

The answer is true good luck

On the Cities worksheet, click cell F13. The lodging is based on a multiplier by City Type. Some cities are more expensive than others. Insert a VLOOKUP function that looks up the City Type (B13), compares it to the City/COL range (A7:B10), and returns the COL percentage. Then multiply the result of the lookup function by the Total Base Lodging (B5) to get the estimated lodging for the first city. Copy the function from cell F13 and use the Paste Formulas option to copy the function to the range F14:F18 without removing the border in cell F18.

Answers

Answer:

I have found and attached a spreadsheet (cities.xlsx) that matches this question.

First we remember the VLOOKUP sintax:

=VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup])

We need to look up the City Type (B13),

compare it to the City/COL range (A7:B10),

and return the COL percentage (2nd column of City/COL)

so the VLOOKUP function on cell F13 has to be:

=VLOOKUP(B13,$A$7:$B$10,2)

Next, to multiply the result by the Total Base Lodging (B5):

=VLOOKUP(B13,$A$7:$B$10,2) *$B$5

Finally que copy the formula to the F14:F18 cells

Notice the use of $  to make cells static and avoid errors while copying the formulas to different cells.

I have attached the completed spreadsheet as "cities final.xlsx"

Which symbol is at the beginning and end of a multiline comment block? &&& """ %%% ###

Answers

Answer:

#

Explanation:

I have notes on it we learned it in 8th

###

the other guy was correct.

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. :)

Repl.it Assignment 4.1.3 (Max and Min)
Please help me
I will give brainliest and a like

Answers

-31 or 21- 50 it may also carry -31

Shannon wants to work with renewable energy. She is researching what it would take to become a geochemist. A geochemist is someone who uses chemistry to study water and elements in it. What skill or ability well Shannon need to be the most effective in this position?

Answers

Answer:

Critical thinking

Explanation:

Shannon needs to be a Critical thinker to be effective in this position. Critical thinking has to do with giving deep and good thoughts while doing analysis, or assessment in other to come up with good judgements about a subject or topic.

Since she is going to be studying water and elements in it, she would be doing a lot of analysis and assessments and In other to do good in her field she must learn to think critically before arriving at her conclusions.

Answer:

Critical thinking

Explanation:

Shannon needs to be a Critical thinker to be effective in this position. Critical thinking has to do with giving deep and good thoughts while doing analysis, or assessment in other to come up with good judgements about a subject or topic.

Since she is going to be studying water and elements in it, she would be doing a lot of analysis and assessments and In other to do good in her field she must learn to think critically before arriving at her conclusions.

Which statement best explains the purpose of using online note-taking tools?

Online note-taking tools guarantee better scores on tests.
Online note-taking tools let students take notes quickly and easily.
Online note-taking tools tell students exactly what they need to study.
Online note-taking tools turn disorganized notes into organized notes.

Answers

Answer:

B

i did the instruction

Explanation:

The statement which best explains the purpose of using online note-taking tools is that Online note-taking tools let students take notes quickly and easily. Thus, the correct option for this question is B.

What is an online note-taking tool?

An online note-taking tool may be characterized as a type of software tool that significantly allows users to capture, store, and manage voice and text notes on different devices.

It makes note-taking convenient and accessible and allows you to write and study flexibly. Unlike other note-taking apps, you can view documents and take notes at the same time on one screen.

The primary purpose of note-taking is to encourage active learning and to prepare study materials for exams. Developing note-taking skills should help you organize information into an understandable format that will assist in your studying process.

Therefore, the correct option for this question is B.

To learn more about Note-taking tools, refer to the link:

https://brainly.com/question/18546670

#SPJ2

What is the difference between Narrow AI and Artificial General Intelligence (AGI)?
(not from google please)

Answers

Highs going l ktbsysksyoyyooyso

Impersonal communication involves _________________. a. sharing personal information b. trying to become friends c. barriers to developing positive relationships d. both b and c

Answers

Answer:

its ccccccc

Explanation:

Answer:

c took it on e2020 and got 100 on my test

Explanation:

How would you declare a variable x of type double and set it equal to 25.25? In JAVA

Answers

In java, you have to use the double keyword.

double x = 25.25;

You have to end the statement with a semi-colon. I hope this helps!

What key allows you to move to the next line

Answers

Answer:

enter

Explanation:

press tab or enter and you will get what u need

5. Choose the correct options:
a. Each bead in the heaven of Abacus has .... value
i) One
ii) Three
iii) Five
iv) None of the above​

Answers

Answer:

in my opinion the answer is number 2 three opinion the answer is correct then mark me as brain list

Other Questions
A train in Japan can travel 813.5 miles in 5 hours Which equation is NOT written in slope-intercept form?Y= -9x2x-5=2y+14Y=7x+3Y=-3 Some behaviors, such as nest building in birds, are determined by the genes of an organism. These innate behaviors are inherited from parent to offspring and exhibited even if the offspring does not observe its parent performing the behavior. Nest building behavior was most likely an evolutionary advantage because birds that built nests were more likely to raise their young to maturity and thus increase their reproductive success. That is, birds that laid their eggs in nests had more offspring survive to adulthood than those that did not. Behaviors that are determined by genes and that give an organism increased reproductive success usually become common in a species due to+ Given the function f(x) = 7x + 2, find x when f(x) = 31.0Plz help A yearbook page for Cesar Chavez states "Rememberwhen you fought for better working conditions forfarm workers?" What image would best illustrate this?an image of Cesar Chavez farming with his familyan image of Cesar Chavez leading a peacefulmarchO an image of Cesar Chavez working on a farm as aboyan image of Cesar Chavez eating with farmworkers Find the size of unknown angles PLEASE HELP Question #6Multiple SelectWhich of the following describes an application error? Select 2 options.O Every time you try to run your new game, it crashes after displaying the opening screen.After a recent Windows update, you can no longer access the internet on your laptop.You see a message that the active application has stopped responding to input.Nothing happens when you press the space bar on your keyboard, but the other keys are working.Nothing happens when you press the Power button on your desktop PC. You will learn in this course that organic compounds have covalent bonds with a significant amount of energy stored in them. This is why we burn fossil fuels to generate energy to heat our homes or drive our cars. Given this information, which of the compounds listed below would you expect to have the most energy is its carbon-carbon bond? The man who created the first periodic table, based upon atomic weight Amira needs 24 and StartFraction 3 over 10 EndFraction feet of fencing material to make a fence for her small garden. Which number represents the additive inverse of this number?Negative 24 and StartFraction 3 over 10 EndFractionNegative 24StartFraction 3 over 10 EndFraction24 and StartFraction 3 over 10 EndFraction which number is a perfect cube 25 36 100 64 Arguments about denial of abs-cbn franchise Anyone help please?? 16% of 95 is what number? ( pls help im dumb lol ) Which statement correctly describes the expression (-70)(-6)?A. Both factors are negative, so the product will be positive. B. Both factors are negative, so the product will be negative.C. One factor is positive and one factor is negative, so the product will be negative.D. One factor is positive and one factor is negative, so the product will be positive. the statement that best summarizes the impact of betrayal is What is the difference between comprehensive and collision coverage in an auto policy Complete the steps to solve the equation. 1/5t + 2 - ____ = 17 - _____ 1/5t=______ _____ * 1/5t =______ t=_______ Del Gato Clinic's cash account shows a $11,589 debit balance and its bank statement shows $10,555 on deposit at the close of business on June 30. Outstanding checks as of June 30 total $1,829. The June 30 bank statement lists a $16 bank service charge. Check No. 919, listed with the canceled checks, was correctly drawn for $467 in payment of a utility bill on June 15. Del Gato Clinic mistakenly recorded it with a debit to Utilities Expense and a credit to Cash in the amount of $476. The June 30 cash receipts of $2,856 were placed in the bank's night depository after banking hours and were not recorded on the June 30 bank statement.Prepare its bank reconciliation using the above information. DEL GATO CLINIC Bank Reconciliation June 30 Book balance Add: Bank statement balance Add: Deduct: Deduct: Adjusted bank balance Adjusted book balance Can you guys please help me again