Please help with this code!

Please Help With This Code!

Answers

Answer 1

import random

months = ["jan", "feb", "mar", "apr", "may", "june", "july", "aug", "sept", "oct", "nov", "dec"]

pick1 = random.choice(months)

pick2 = random.choice(months)

if months.index(pick1) < months.index(pick2):

   print(pick1)

   print(pick2)

else:

   print(pick2)

   print(pick1)

Since the months are already in chronological order in the list, we can compare their index and print the string with the smaller index first. I wrote my code in python 3.8. I hope this helps.


Related Questions

The Internet was first used by which of the following institutions?
A.
Nazi party
B.
US Postal Service
C.
US Department of Defense
D.
British Broadcast Corporation

Answers

Answer: The answer is C. Us Department of Defense

Explanation:

TLE 10 - ICT

In order for computers to network, what are the things you are going to set or configure?

Answers

Answer:

Information And Communication Technology

What are a set of instructions that a computer can follow

Answers

Answer:

.b

Explanation:

Which are examples of types of audio media that can support a presentation? Check all that apply.

music
recordings
movies
photographs
podcasts
sound bites

Answers

Music,recordings,sound bites

The Advanced Properties sheet enables you to add which of the following?
keywords
category
Author's name
All of the above

Answers

Answer:

All of the above.

Explanation:

Microsoft Word refers to a word processing software application or program developed by Microsoft Inc. to enable its users type, format and save text-based documents.

The properties of a document is generally referred to as metadata and it includes details such as keywords, category, subject, title, and author name. These properties when properly entered into a document makes it easier to organize, search and identify the Ms-word document.

Hence, the Advanced Properties sheet of Microsoft Word enables you to add keywords, category and author's name.

puter Science (IS)
2
3
Complete the sentence.
A
covers several adjacent buildings of a school and business.

Answers

Answer: Campus Area Network

Explanation: Got it right on Edge.

Answer:

Camus Area Network

Explanation:

Just did it Edg 21/22




The following code will not compile. Which of the options below would allow the code to
compile and run as intended?
if (x >= -10 and < 10):
print("In range")

Answers

Answer:

if (x >= -10 and x < 10):

print("In range")

Explanation:

you're missing an x in the if statement. program is getting confused when you run because it doesnt know what to compare after the and if you add x it'll know what to compare.

all this is saying is that if x is greater than or equal to -10 and x is less than 10 its in range!

if (x >= -10 and x< 10):

print("In range")

You compared each letter in the correct word to the letter guessed. Assume the correct word is "cloud." Finish the code to compare the guessed letter to the "u" in "cloud."
if guess == correct[4]
if guess == correct{4}
if guess == correct[3]
if guess == correct{3}

Answers

Answer:

if guess == correct[3]:

Explanation:

Its was correct

You compared each letter in the correct word to the letter guessed the correct word is "cloud." Finish the code to compare the guessed letter to the "u" in "cloud." is option c. it is if guess == correct[3].

What is code ?

Coding method is the use of the programming language to get the laptop to act as desired. Each line of the code is a hard and fast of commands for the laptop.

The correct word is "cloud." Finish the code to compare the guessed letter to the "u" in "cloud" is if guess == correct.

Read more about the code:

https://brainly.com/question/19344465

#SPJ2

Under what circumstances will the indented line of code immediately after an if statement be executed?


if the condition is false

if the condition is true

if the line begins with a #

if the line contains a variable

Answers

Answer:

The answer is "if the condition is true ".

Explanation:

In this question, the third choice is correct because the IF statement will help in making decisions, and it also controls a judgement of the program according to the attribute specified. The IF statement operates a collection if a provided condition is fulfilled or FALSE are assessed by some other set of protocols.

Answer:

The answer is B i did the test got it right so he/she is correct

have a good day hope this helped :)

Explanation:

Shelbi likes to play video games on an old Nintendo video game system. No matter how old the cartridge, when she inserts it into the Nintendo console to play, the game loads right away. What type of memory is responsible for this process?

Hard drive
RAM
ROM
Storage

Answers

A: Hard drive!!!!!! Because

Answer:

Hard drive

Explanation:

Which of the following behaviors does not harm a company if your employment is terminated?

Answers

Answer:

D. notifying your employer of all accounts you have access to, and requesting that they change all passwords before you leave

Explanation:

Assuming your employment is terminated, notifying your employer of all accounts you have access to, and requesting that they change all passwords before you leave is a behavior that would not harm a company. In the true and actual sense, making such suggestions is commendable because it would go a long way to cause more good rather than harm the company.

Some mischievous and malicious employees would rather not tell so they can still have an unauthorized access to the company's account and perpetrate various level of evil.

Hence, it is a good global practice to have a company's login credentials updated whenever an employee's employment is terminated.

Can someone help me out? I'm really struggling on this :( Maybe into just one paragraph. Usually I'd skip it but I need to get this done by today. Thank you!

Submit your interview project with a local businessman or woman in written format.

Answers

Before conducting an interview, research any information related to the topic of the interview. You can also research the background information of your interviewee so you know what questions to formulate. You don’t want to sound ignorant, and some interviewees don’t have time to explain everything. If you’re done doing your research, read and try to absorb the information needed for you to make your set of questions. You can also ask them additional questions that are not part of your research just to get additional background information from the person. The best kind of questions is open-ended questions that invite the interviewee to talk about themselves. People love it when you ask them about themselves or their interests. They can freely talk about it if you make your questions convenient. Make sure your interview has a purpose. If the purpose is to elaborate the craftsmanship of the singer-songwriter’s musical abilities, then stick to it. Don’t ask them about any other topic like their personal life or how many pets they have. Make sure your questions (and the follow-up ones) don’t stray from your main agenda of the interview. Don’t forget to simplify your questions to avoid confusion from your interviewee. Once you’ve formulated your questions, it’s time to prepare the materials you need in conducting your interview. Prepare the following materials you may use; smartphone, tape recorder (to record your interview but ask permission first if it’s okay to record your interview), pen, paper (for note-taking), notebook (where you keep your questions). Don’t forget to keep their contacts and their phone numbers or e-mails just in case if you need some clarifications from the interview. If you’re not used to giving out interviews– practice, practice, practice. You may practice with a family member, a friend, or anyone who is willing to sit down and help you out. This way you’ll get to see whether your questions make sense, you’ll be aware of how you conduct your interview and make some changes to your pre-interview questions. That way, you won’t make a fool out of yourself once you get to do the actual interview.

What is the function of primary keys?



Primary keys facilitates __?__ because they act as unique identifiers

Answers

Answer:

Searching and sorting.

Explanation:

A data dictionary can be defined as a centralized collection of information on a specific data such as attributes, names, fields and definitions that are being used in a computer database system.

In a data dictionary, data elements are combined into records, which are meaningful combinations of data elements that are included in data flows or retained in data stores. This ultimately implies that, a data dictionary found in a computer database system typically contains the records about all the data elements (objects) such as data relationships with other elements, ownership, type, size, primary keys etc. This records are stored and communicated to other data when required or needed.

Basically, when a database management system (DBMS) receives data update requests from application programs, it simply instructs the operating system installed on a server to provide the requested data or informations.

Binary search is an efficient algorithm used to find an item from a sorted list of items by using the run-time complexity of Ο(log n), where n is total number of elements.

Binary search applies the principles of divide and conquer.

A primary key refers to a keyword found in a relational database which uniquely identifies each record contained therein.

A relational database can be defined as a type of database that is structured in a manner that there exists a relationship between its elements. Also, in a relational database, a single space within a row or column contains exactly one value.

Hence, the function of primary keys is that, primary keys facilitates searching and sorting because they act as unique identifiers.

Answer:

Primary keys facilitate table searches because they act as unique identifiers

Explanation:

I have the answer from my notes, and I got it correct on Plato :)

What is the definition of a flowchart? *

Answers

Answer:

A flowchart is simply a graphical representation of steps. It shows steps in sequential order and is widely used in presenting the flow of algorithms, workflow or processes. Typically, a flowchart shows the steps as boxes of various kinds, and their order by connecting them with arrows.

Explanation:

1. A process of manipulating data to make it more useful form.It does not
only consist of mathematical calculations but also data operations​

Answers

Answer:

Data processing.

Explanation:

A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.

A data dictionary can be defined as a centralized collection of information on a specific data such as attributes, names, fields and definitions that are being used in a computer database system.

In a data dictionary, data elements are combined into records, which are meaningful combinations of data elements that are included in data flows or retained in data stores.

This ultimately implies that, a data dictionary found in a computer database system typically contains the records about all the data elements (objects) such as data relationships with other elements, ownership, type, size, primary keys etc. This records are stored and communicated to other data when required or needed.

Basically, when a database management system (DBMS) receives data update requests from application programs, it simply instructs the operating system installed on a server to provide the requested data or informations.

Data processing can be defined as the process of manipulating data to make it more useful form. It does not only consist of mathematical calculations but also data operations​.

For example, you could enter couple of values (data) into Microsoft Excel and process them to view the relationships between the values through a bar chart (information).

Which Excel feature should you use to only show values in a column that fit certain criteria?

Answers

Answer:use input

Explanation:

Which statements about organizing messages in Outlook 2016 are true? Check all that apply. The Categories function is used for grouping different types of messages in your inbox. Renaming a color category is a helpful step before assigning it to a message. Using the Ignore and Clean Up functions can clear up space in your inbox. Marking messages for follow-up will create a new appointment in the Calendar. New folders are saved on the server and are added to the list in the Folder pane. Once you create a new subfolder, messages can be dragged and dropped into it.​

Answers

Answer:

A. B. C. F. G.

Explanation:

Answer:

The Answer is A, B, C, E, F

Select the correct answer.
Which term describes an OOP concept?
A. procedures
B. stacks
C. routines
D. classes

Answers

The Answer is Classes

This post brought to you by Edmentum gang. Don't listen to the person above, they are lying.

Which of the following are examples of software? (Select all that apply)

Answers

Put a photo or something

Answer:

How can we answer with no photo ;(

Explanation:

You are creating a story map about Mexico. After configuring the web app template, you launch the app to test it. When the app opens, the map is zoomed to the whole world, instead of to Mexico. What actions will fix the problem

Answers

Nbdjsksjsidjdjwkwejd

The program that is BEST suited
for managing large amounts of
data is
a Microsoft Publisher
b. Microsoft Word
c. Microsoft PowerPoint
d. Microsoft Access​

Answers

Answer:

everything

Explanation:

cuz I use everything and they all work good

What are all the possible 4-digit codes you can make with the numbers 7, 0, 9, and 3?

Answers

0,7,0,0
9,9,0,0
7,7,7,7
3,9,0,7

Hope this helps
7093
3907
9073
3709
7093
7039
0793
0973
9307
3097
3970
9703
9730

A spreadsheet contains the maximum weight and maximum height for fifty dog breeds. The breeds are located in
rows, and the weights and heights are listed in columns. Emily needs to determine the maximum weight of the dog
breed in row 43. Which tool could she use to quickly navigate to the information?
locate
O sort
O filter
O replace

Answers

Answer:

A Locate

Explanation:

Quizlet Studying

Answer:

A. Locate

Explanation:

Which statement opens a text file so that you can retrieve the information it contains?

aFile = open("books.txt","r")

aFile = open("books.txt","s")

aFile = open("books.txt", "w")

aFile = open("books.txt", "a")

Answers

Answer:

Answered below

Explanation:

aFile = open("books.txt", "r")

This code uses the function open() which takes two parameters. The first parameter is the file name while the second parameter is the mode in which you are accessing the file.

The "r" mode opens the file in a reading state. That is, you can only read from the file. This code completes the reading process

aFile.read( )

The "w" mode opens the file so you can write to it and make changes.

The "a" mode opens the file so you can add contents to it.

The statement which opens a text file somthat you can retrieve the information it contains is; aFile = open("books.txt", "r")

Discussion:

The code above uses the function open() which requires two parameters.

First of which is the file name while the second parameter is the mode in which one is accessing the file.

On this note, the "r" mode opens the file in a reading state. This in essence means, you can only read from the file. This code completes the reading process

aFile.read( )

Post Script:

The "w" mode opens the file so one can write to it and make changes.

The "a" mode opens the file so one can add contents to it.

Read more on text file:

https://brainly.com/question/6962696

When writing HTML code, what is meant by 'syntax'?​

Answers

Answer:

   Syntax is essentially the punctuation and grammar rules for a computer language.

Explanation:

  Certain characters and words have special meanings and must appear in a particular order for the computer code to make any sense. A simple example from line 3 in Figure 2.2 is the piece of HTML code <head>.

6.3 code practice edhisive

You should see the following code in your programming environment:

Import simplegui

Def draw_handler(canvas):
# your code goes here

Frame = simplegui.creat_frame(‘Testing’ , 600, 600)
Frame.set_canvas_background(“Black”)
Frame.set_draw_handler(draw_handler)
Frame.start()

Use the code above to write a program that, when run, draws 1000 points at random locations on a frame as it runs. For an added challenge, have the 1000 points be in different, random colors.

Answers

Answer:

import simplegui

import random

def draw_handler(canvas):

for x in range(1000):

colorList = ["Yellow", "Red", "Purple", "White", "Green", "Blue", "Pink", "Orange"]

c = random.choice(colorList)

x = random.randint(1,600)

y = random.randint(1,600)

canvas.draw_point([x, y], c)

frame = simplegui.create_frame('Testing', 600, 600)

frame.set_canvas_background("Black")

frame.set_draw_handler(draw_handler)

frame.start()

Explanation:

I used a for loop, setting my range to 1000 which is how you create exactly 1000 points. Next, I defined my color array, my x randint value, and my y randint value. I set both the x and y randint values to 1 - 600 since the frame is 600x600. The rest is pretty self explanatory.

Select the correct answer.
Which recently developed programming language also supports procedural programming?
A. BASIC
B. C
C. FORTRAN
D. Python
E. C++

Answers

Answer:

Python

Explanation:

What is the difference between an embedded image and an attached image? An embedded image is displayed as an image in the body of an email, but an attached image is not. An embedded image is displayed as a paper clip in the content of an email, but an attached image is not. An attached image takes on a larger file size due to the extra data required to create the attachment. An attached image is a smaller file size due to the compression that takes place during the attachment process.

Answers

Answer:

An embedded image is displayed as an image in the body of an email, but an attached image is not.

Explanation:

This is the answer.

Answer:

it is a

Explanation:

25 Points!
Which of these lines of code will increment a variable?
A. print(variable)
B. count(variable)
C. inc(variable)
D. variable = variable + 1

Answers

Answer:

I believe the answer is D. var = var + 1

Explanation:

Drag the tiles to the boxes to form correct pairs.
Match the type of relationship with its OOP concept.
association
aggregation
composition
inheritance
has-a relationship, where one class has an object of another
arrowRight
a relationship where we define one class as private inside another
arrowRight
is-a relationship, where we derive one class from an existing class
arrowRight
a relationship, where one class uses the other
arrowRight
Your welcome

Answers

Answer:

1. Aggregation.

2. Composition.

3. Inheritance.

4. Association.

Explanation:

In object-oriented programming (OOP) language, an object class represents the superclass of every other classes when using a programming language such as Java.

The four (4) main types of relationship and their object-oriented programming (OOP) concept includes;

1. Aggregation: has-a relationship, where one class has an object of another.

2. Composition: a relationship where we define one class as private inside another.

3. Inheritance: is a relationship, where we derive one class from an existing class.

4. Association: a relationship, where one class uses the other.

Other Questions
The Xs show the location of beanbags a student tossed at a target. Thestudent was aiming for the center circle. Which words best describe thestudent's results?A. Low precision, low accuracyO B. High precision, low accuracyO C. High precision, high accuracyO D. Low precision, high accuracy Read this passage that Anil wrote for language arts. Mom, Dad, and I put balloons all around the living room. I painted a huge banner that read Welcome Home, Grandma! Dad and I baked a chocolate cake and put it on the coffee table. When Grandma walked into the room, she shouted, My goodness! Then we all ate cake and celebrated her homecoming together.Anil uses an exclamation point to show that his grandmother isupset.doubtful.surprised.confused. Question 2 (5 points)(01.02 LC)Which is a cause of side stitches? (5 points)Friction between a body part and clothingObExercising on hard surfacesInsufficient water intakeOdPoor breathing technique I need help on this whoever is good in Spanish How to select south Africa in countries how do u identify slope What is the electric field inside a hollow sphere with total charge Q distributed evenly along the surface of the sphere Evaluate: (9 - 3) + 5 Please answer this correctly without making mistakes.I want ace expert and genius people to answer this correctly without making mistakes Who does the shoemaker consider to be ""wolves""? Whats the purpose of this comparison?this is in the story ""from lithuania to the chicago stockyards"" on commonlit What is the equivalent fraction of 6/8 with 32 as the new denominator Ill mark u brainliest!! how does star change From the beginning of the hate u give to the end ?! please help me please will give brainliest to anyone who is good show your work Determine the smallest integer value of x in the solution of the following inequality.-2x +1 < -9 Write a cause and affect paragraph (4-5 sentences) describing how tensions between the American colonies and Britain escalated prior to the American revolution. Begin by talking about the Seven Years War. The work done by a lowly person has no importance in our society. True or False? Can anyone tell me plse? 6. How would you show your understanding of the traditional music of Japan?a. Japanese music is usually about religious festiva, work, love, and regional song. b. Japan is one of the most beautiful countries in Southeast Asiac. Koto is Capital city of Japan How does the media influence the policy agenda of the President and the public agenda of the American public? WITH PRETEND ROPE IN HANDS, TURN ROPE AND JUMP, DESCRIBES WHICH CHAIR EXERCISE?CRUNCHESPRETEND JUMP ROPECRISS CROSSHAND TO FOOTLIFT ONE KNEE TO A 90 DEGREE ANGLE, THEN THE OTHER, DESCRIBES WHICH CHAIR EXERCISE?JUMPING JACKSDOULE LEG RAISESMARCHINGELBOW TO KNEE please help :)Escribe con mquina el pronumbre sujeto que tomaria el lugar del sujeto. (Type the subject pronoun that would take the place of the underlined noun)1.) Mara y Paul2.) Jaime 3.) Mallory y yo 4.) la clase 5.) los libros