#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)
<span>it is caused by A.overgrazing
</span>
Answer:
The advantages of a digital darkroom is that it allows the photographer to make minor changes to improve a photograph. The disadvantage is that the more you want your picture to come out better you would need to waste your time or be patient to get the picture and buy a better camera.
The thing that happens if you type a number instead of a word in the given code is: The number is printed
This is because the code already assigned a variable to the input and it accepts both numbers and alphanumeric keys because it is an integer command.
<h3>What is Coding?</h3>
This refers to the use of programming that is used to give instructions to a computer system
Hence, we can see that The thing that happens if you type a number instead of a word in the given code is: The number is printed
This is because the code already assigned a variable to the input and it accepts both numbers and alphanumeric keys because it is an integer command.
Read more about coding here:
brainly.com/question/16397886
#SPJ1
Answer:
CPU clock cycles = Instruction count x CPI.
CPU execution time =
= CPU clock cycles x Clock cycle.
= Instruction count x CPI x Clock cycle.
T =
I.
x CPI x C
Explanation:
i'm guessing