1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
monitta
4 years ago
5

HELP I WILL MARK BRAINLIEST!!! I NEED ASAP!!!

Computers and Technology
1 answer:
Alex777 [14]4 years ago
4 0

#This is a way without a loop

friends = list(map(str,input("Enter Names: ").split()))

print(sorted(friends))

#This is a way with a loop (for&&while)

friends = list(map(str,input("Enter Names: ").split()))

cool = True

while cool:

   cool = False

   for i in range(len(friends)-1):

       if friends[i] > friends[i+1]:

           coo = friends[i]

           friends[i] = friends[i+1]

           friends[i+1] = coo

           cool = True

print(friends)

You might be interested in
In Bash, what commands can you use to view the contents of a document?
AlekseyPX

You can use the cat and less command to view the contents of a file.

hope this helps! :)

8 0
2 years ago
How long does a CT scan take to run?
qwelly [4]

Answer: About 5-10 minutes. I had one done when i was like 9 but i don't remember the exact time. It was less than 15 minutes tho

5 0
3 years ago
Read 2 more answers
What are the basic steps in creating a new program
ladessa [460]
<span>first make a text file, then write the framework or(scripts for your program). Then write Your Instruction and save Your Program. After you've done that, get and install java jdk(its like a development tool). Finally c<span>opy the path(text file) to the Java tools(jdk)

</span></span>
3 0
3 years ago
When preparing a spreadsheet that contains population data for different nations, what is the best way to provide a visual compa
valentina_108 [34]
Pie chart. It shows all the amounts all compared at once.
5 0
3 years ago
Read 2 more answers
(5 pts) Write the type declaration for a struct DataType named Appointment containing the following members: - a string variable
7nadin3 [17]

Answer:

  1. struct Appointment {
  2.    char name[20];
  3.    struct Date d;
  4.    struct Time t;
  5. };
  6. struct Date{
  7.    int year;
  8.    int month;
  9.    int day;
  10. };
  11. struct Time{
  12.    int hour;
  13.    int minutes;
  14.    int seconds;
  15. };

Explanation:

To create a struct data type, let use the keyword "struct" and followed with the variable name, <em>Appointment </em>(Line 1).  

Next create the string member, <em>name</em> (Line 2).

Next we need to  include two other struct data types (Date and Time) as part of the member of the existing struct. To do so, we can try to define the struct for Date (Line 8 - 12) and Time (Line 14 - 18) separately.

At last, we include the struct<em> Date</em> & <em>Time</em> into the <em>Appointment </em>struct (Line 3-4)

5 0
3 years ago
Other questions:
  • You can pin applications to which two areas?
    11·1 answer
  • Which is the last step in conducting a URL search?
    14·1 answer
  • What is a database query?
    12·2 answers
  • 100 points !!! Some games fall under more than one category. For example, many racing games allow players to modify the cars the
    8·2 answers
  • Routing connects different network segments and decides where __________are sent to
    7·1 answer
  • You may see the term FAQ on websites which stands for Frequently Asked Questions this is an example of which type of mnemonic?
    9·1 answer
  • Which is true about POP3 and IMAP for incoming email?
    10·1 answer
  • your brother has made a battery operated torch by using 2 cells &amp; has come to ask you how he may make the torch more powerfu
    5·1 answer
  • You are splitting up all your apples equally between 3 people. which statement below will calculate how many apples will be left
    12·1 answer
  • How do you properly turn off a computer?
    8·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!