Answer:
lst = []
n = int(input("Input an array size for you words array: "))
print("Now please enter " + str(n) + " words")
max = 0
min = 1000
index_min = 0
index_max = 0
for i in range(n):
s = input("Input a word: ")
lst.append(s)
if len(s) >= max:
max = len(s)
index_max = i
if len(s) <= min:
min = len(s)
index_min = i
print("The longest word is :" + lst[index_max])
print("The shortest word is :" + lst[index_min])
Explanation:
Create an empty list, lst
Get the size from the user
Create a for loop that iterates "size" times
Inside the loop, get the strings from the user and put them in the lst. Find the longest and shortest strings and their indices using if structure.
When the loop is done, print the longest and shortest
The answer to this is 'for'
Answer:
270
Explanation:
google mhm because yes the election is going on
Answer:
i think i might be the 3 answer
Explanation:
<span>It switches on the electric power for many convenience components of the car like car stereo, power windows, power seats and cigarette lighter. It depends on the car, if this position also switches on energy thirsty components like headlights, rear window defroster and air ventilator. </span>