Say you have a long string and you want to collect all of the letters within it without storing duplicates. What would be the most appropriate type to store the letters in?
a. a set
b. a list
c. the original string
d. a dictionary

Answers

Answer 1

A set because sets do not allow duplicated elements


Related Questions

code bãi gửi xe siêu thị thì được viết như nào?cho em xin ví dụ vs ạ?

Answers

Answer:

https://sharecode.vn/source-code/phan-mem-gui-xe-dua-tren-cong-nghe-nhan-dien-bien-so-qrcode-20588.htm

Many Java programs that you create will receive and process user input. In order to ensure that user input is accurate, you will need to use input validation and exception handling.

a. True
b. False

Answers

Answer: True

Explanation: True

Which best describes sorting, filtering, and deleting records?
O Sorting and filtering can be undone, but deleting records is a permanent change.
O Sorting can be undone, but filtering and deleting records are permanent changes.
O Deleting and filtering can be undone, but sorting records is a permanent change.
O Deleting can be undone, but sorting and filtering records are permanent changes.​

Answers

Answer:

Deleting and filtering can be undone, but sorting records is a permanent change.

Write a program to compare the content of AX and DX registers, if they are equal store 1 (as 8 bits) in locations with offset addresses (0020H, 0021H, ..., 0040H), otherwise leave these locations without changing.
???​

Answers

Answer:

so srry I'm very low that this question

what are the different versions of Ms word?​

Answers

Answer:

ms paint will not attend as the ICRC is the time to move becuse to get free skin on your skin that you have a doubt about the quality and

why is computer called and information processing machine​

Answers

Answer:

why is computer called information processing machine? Since, the computer accepts raw data as input and converts into information by means of data processing, it is called information processing machine (IPM).

Explanation:

Pleaseeeeee helppppp meeeeeeee
Tomorrow is my examination.​
Please don't ignore.

Answers

Answer:

Floppy disk

Pendrive

sd card

CD

Router

Explanation:

Hope it is helpful

Write a job back with my best Interest

Answers

Answer:

be a doctor

Explanation:

u will help people and save them and get paid

Create a Python dictionary that returns a list of values for each key. The key can be whatever type you want.

Design the dictionary so that it could be useful for something meaningful to you. Create at least three different items in it. Invent the dictionary yourself. Do not copy the design or items from some other source.

Next consider the invert_dict function.

def invert_dict(d):
inverse = dict()
for key in d:
val = d[key]
if val not in inverse:
inverse[val] = [key]
else:
inverse[val].append(key)
return inverse

Modify this function so that it can invert your dictionary. In particular, the function will need to turn each of the list items into separate keys in the inverted dictionary.
Run your modified invert_dict function on your dictionary. Print the original dictionary and the inverted one.
Describe what is useful about your dictionary. Then describe whether the inverted dictionary is useful or meaningful, and why.

Answers

Answer:

Explanation:

# name : [animal type, age, sex]

animal_shellter = {

 "Teddy": ["dog",4,"male"],

 "Elvis": ["dog",1,"male"],

 "Sheyla": ["dog",5,"female"],

 "Topic": ["hamster",3,"male"],

 "Kuzya": ["cat",10,"male"],

 "Misi": ["cat",8,"female"],

}

print(animal_shellter)

print("")

def invert(d):

 inverse = dict()

 for key in d:

   val = d[key]

   for item in val:

     if item not in inverse:

       inverse[item] = [key]

     else:

       inverse[item].append(key)

 return inverse  

inverted_shellter = invert(animal_shellter)

print(inverted_shellter)

find , please help me please help me..​

Answers

Answer:

mealy

Explanation:

A Mealy machine is a finite-state machine whose output values are determined both by its current state and the current inputs.

Write a program that uses input to prompt a user for their name and then welcomes them. Note that input will pop up a dialog box. Enter Sarah in the pop-up box when you are prompted so your output will match the desired output.

Answers

user_name = str (input = ("Please enter your name: "))

def greet (user_name):

print ("Welcome to your ghetto, {0}!".format(user_name) )

A computer network is _____.


a group of people who help you solve any technical issues

a group of computers that are interconnected to share information or documents

a certain type of computer that stores files for large businesses

the wire inside the computer that connects the motherboard to the hard drive

Answers

Answer:

a

Explanation:

a group of people who help you solve any technical issues

who is the owner of apple company??​

Answers

Answer:

Steven Paul Jobs......

....

what do you mean by hardware and software?

Answers

Answer:

I think the above information will help you a lot.

Have a nice day.

Please read the screen shot brainly is not letting me write the whole thing

2) What are three categories of computer languages? 3) Write four components of a QBASIC window. 4) What are the three types of operators in QBASIC? 5) What is the use of connector symbol in flowchart? 6) What is a computer network? 7) State two uses of Internet. 8) Write three examples for web browser. 9) Name some popular ISPs in Sri Lanka. 10) Differentiate between MAN and PAN.​

Answers

Answer:

2: assembly language , machine language and high level language

3: a character set , constants , variables , statements , operators and expressions

A sinewave has a period (duration of one cycle) of 645 μs. What is the corresponding frequency of this sinewave, in kHz, expressed to 3 significant figures?


please help me figure this out I am so confused

Answers

The corresponding frequency of this sinewave, in kHz, expressed to 3 significant figures is: 155 kHz.

Given the following data:

Period = 645 μs

Note: μs represents microseconds.

Conversion:

1 μs = [tex]1[/tex] × [tex]10^{-6}[/tex] seconds

645 μs = [tex]645[/tex] × [tex]10^{-6}[/tex] seconds

To find corresponding frequency of this sinewave, in kHz;

Mathematically, the frequency of a waveform is calculated by using the formula;

[tex]Frequency = \frac{1}{Period}[/tex]

Substituting the value into the formula, we have;

[tex]Frequency = \frac{1}{645\; * \;10^{-6}}[/tex]

Frequency = 1550.39 Hz

Next, we would convert the value of frequency in hertz (Hz) to Kilohertz (kHz);

Conversion:

1 hertz = 0.001 kilohertz

1550.3876 hertz = X kilohertz

Cross-multiplying, we have;

X = [tex]0.001[/tex] × [tex]1550.39[/tex]

X = 155039 kHz

To 3 significant figures;

Frequency = 155 kHz

Find more information: https://brainly.com/question/23460034

WHICH PROGRAMMING LANGUAGES ARE THE BEST AND COMPATIBLE FOR 3D PRINTERS?

Answers

Answer:

G-code and C++ can be used

What is wrong with the following if statement (there are at least 3 errors).
The Indentation indicates the desired behavior.

if numNeighbors >= 3 || numNeighbors = 4
++numNeighbors;
printf ("You are dead! \n “);
else
--numNeighbors;

Answers

In programming, if statements are used to test conditions. The statement to be executed will be determined by the result of the conditions. A statement will be executed if its accompanying condition is true.

The errors in the given code segment are as follows:

The if condition on line 1 should be in a closed bracket; i.e. ()The if condition has more than 1 statements to execute. So, it requires a curly bracket; i.e. {}The second part of the first condition should be == 4 and not =4; because the proper operator to make comparison is == while = is used as an assignment operator

The correct code is as follows:

if (numNeighbors >= 3 || numNeighbors == 4) {

++numNeighbors;

printf ("You are dead! \n “); }

else

--numNeighbors;

Read more about conditional statements at:

https://brainly.com/question/20228453

what is the difference between packed and unpacked bcd numbers ​

Answers

Explanation:

Packed BCD ( Binary coded decimal) is type in which each decimal digit is represented by 4 bits ( 1 nibble) . For Example : 14 will be shown as 0001 0100 in packed BCD form. Unpacked BCD is type in which each decimal digit is represented by 8 bits ( 1 byte).

Discuss the scaled index addressing mode and comments on the following instructions?

a) MOV BX, [CX+5*AX]
b) MOV [DX5*DI+30H], CX

Answers

Memory will also be accessible in Scaled index addressing mode using a 32-bit base & indexing register.The instruction's first parameter will be the base register, and the instruction's second parameter will be the index register. The index register is multiplied by a scaling factor before the program is fetched.

For option a:

The baseline register is [tex]\bold{BX}[/tex], while the index register is [tex]\bold{CX+5*AX}[/tex].

The multiplier for Accumulator [tex]\bold{AX }[/tex] will be 5.[tex]\bold{CX }[/tex] will be multiplied with this value.[tex]\bold{CX+5*AX}[/tex] will contain a memory address.The value at position [tex]\bold{CX+5*AX}[/tex] is accessed by [tex]\bold{[{CX+5*AX} ]}[/tex].The value retrieved from the address [tex][\bold{CX+5*AX}][/tex] is moved into Base register BX by the MOV instruction.

For option b:

Its index register is [tex]\bold{CX }[/tex], whereas the base register is [tex]\bold{DX5*DI+30H}[/tex].

[tex]\bold{CX}[/tex] has a number, that is copied to a computed place below.After multiplying [tex]\bold{DI}[/tex] by [tex]\bold{5, DX}[/tex] will be multiplied by this [tex]\bold{5*DI}[/tex].To the aforementioned multiplied value,[tex]\bold{ 30H}[/tex] will be added.[tex]\bold{[DX5*DI+30H]}[/tex] is a value located at location [tex]\bold{DX5*DI+30H}[/tex]. [tex]\bold{DX5*DI+30H }[/tex] is a memory address number.As a result, the value of [tex]\bold{CX}[/tex] will be copied to the [tex]\bold{ [DX5*DI+30H] }[/tex]location.

Learn more:

brainly.com/question/14319860

If i took my SIM card out of my phone and put it in a router then connect the router and my phone with Ethernet cable would the ping change???

Answers

Answer:

ummmmmmmmmmmmm nooooo???

Transitive spread refers to the effect of the original things transmitted to the associate things through the material, energy or information.

a. True
b. False

Answers

A is the correct answer

Select the true statement about the motherboard.


It executes the commands sent to it by the application software.


It acts as a storage point for read-only memory (ROM).


It acts as the working memory of the computer by transferring data from the hard disk for processing.


It provides much of the electrical connection between different computer parts.

Answers

Answer:

it executes the commands sent to it by the applica software .

The motherboard provides much of the electrical connection between different computer parts.

What is a motherboard?

This is known to be a kind of  printed circuit board that is made up of some key parts or aspect of a computer or any kind of device.

Conclusively, it is one that is made up of It connectors that is a place where other circuit boards can be placed and as such act to provides much of the electrical connection between different computer parts.

Learn more about motherboard from

https://brainly.com/question/12795887

#SPJ2

8. Which clause will always executes
a) try b) catch c) finally d) None of them

Answers

Answer:

I think a is correct answer

Mary has been locked out of her account after failing to correctly enter her password three times. As the system administrator, you need to unlock her account. Which of the following commands would unlock Mary's account assuming that you are using pam_faillock.so module?

a. faillock --reset --user mary
b. pam_faillock --unlock --user mary
c. pam_faillock --reset --user mary
d. faillock --unlock --user mary

Answers

Oh hey lol yea yea lol I got the money back to me put on the phone so you know

The primary function of a web server is to store, process and deliver web pages to the clients. You are required to clearly identify the purpose and relationships between communication protocols, web server hardware, web server software with regards to designing, publishing and accessing a website.

Answers

Answer:

The main job of a web server is to display website content through storing, processing and delivering webpages to users. Besides HTTP, web servers also support SMTP (Simple Mail Transfer Protocol) and FTP (File Transfer Protocol), used for email, file transfer and storage.

Explanation:

If it helps you mark me as a brainleast

The speed of a computer is measured in____?​

Answers

Answer:

gigahertz

Explanation:

The clock speed measures the number of cycles your CPU executes per second, measured in GHz (gigahertz)

[tex]\sf{}[/tex]

ANSWER => gigahitrz

Explanation:

The speed of a computer is measured in gigahitrz

Which of the following is input devices? (a)Scanner (b) Keyboard (c) Both a and b (d) Plotter​

Answers

Answer:

C

Explanation:

Scanner and Keyboard are input device.

Write equivalent predicate statement for Every teacher who is also a painter loves Bob​

Answers

Answer:

Every teacher who is also a painter loves Bob

I have no idea how to answer this question so I’m just gonna

Select all steps in the list below that should be completed when using the problem-solving process discussed in this chapter.


Take action.

Take a break.

Evaluate.

Complete the task.

Consider solutions and list ideas.

Understand the task or need.

Ask a coworker for help.

Answers

Take action.

Evaluate.

Complete the task.

Consider solutions and list ideas.

Understand the task or need.

Other Questions
You are not able to go to the cinema with your friend because you are sick. Write approximately 100 ja* in Korean At what conditions acceleration of a body is zero? 1. what is hard water. 2. Mention four sources of water.3. write down the chemical formula of water.4. What is purification of water.5. Mention two importance of purification of water. 6. Mention 4 method used ot purify water. 7. Mention 4 impurities found in water. 8. Explain the term contaminated of water.9. State two physical properties of water. 10. mention the names of of the elements that causes hardness in water. PLZ HELP ITS TIMED A group member suggests a bake sale to raise money for a club. Which of the following builds off of this idea?A. We could also sell cartons of milk with the baked goods to raise profits.B. My brother did a bake sale for his club and raised three hundred dollars in a week.C. Bake sales don't work; we should do a car wash instead.D. I like the idea of a bake sale. Use the distributive property to clear parentheses Correct answer gets brainliest and 5 stars Maximum and minimum value Rabi Sahu fixed the marked price of his radio to make a profit of 30 %. Allowing 15 % discount on the marked price, the radio was sold. What percent profit did he make? What would most likely cause nations with lots of natural resources to struggle economically?too many trading partnersincreased industrialization causing more expensive educationtoo many skilled workerslack of technology 1. My grandmother (give) me a new bike next week.2. He (not go) to the movies on Sunday nights.3. I (go) to Ha Noi with my parents yesterday.4. I (do).. the house work everyday.5. His mother (cook).in the kitchen now.6. What Mai (do).now? She (play).in the garden.7. The teacher (read) the dialogue at moment and we (listen) ......... to her.8. What ...... your father (do) .......... now?- He (read) ............... a newspaper in the living room.9. Minh (play). .............. soccer every Sunday. alchemy was practiced "We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness.--That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed" --Declaration of Independence, 1776 Which function describes this graph?A. y = (x+5)(x-3)B. y = x^2+7x+10C. y = x^2+5x+12D. y=(x-2)(x-5) "There is a close relationship between population and quality of life." Explain What is also known as computer Network? Geometry, please answer question ASAP . All researchers must---------- this weeks session on laboratory policies. (A) attend (B) comply (C) inspect (D) apply I need help with this please!!!! please answer correctly. Polymers are formed via dehydration reactions by molecules. Which of the following best describes a dehydration reaction? Assembling molecules in either carbonyl or carboxyl functional groupsAssembling molecules in either hydroxyl or carboxyl functional groupsDissembling molecules in carboxyl functional groupsDissembling molecules in hydroxyl functional groups