Write a program that has a loop to read in ten strings and put them into a list. Write a second loop to print the strings in the reverse order. This is an exercise in indexing, so do not use the reverse() method of list. (python 3)
answer)
list1=[]
print("Enter 10 strings ")
for i in range(1,11):
list1.append(input())
print("Reverse order is ")
for j in range(len(list1)-1,-1,-1):
print(list1[j])
output:

Note: please comment if you have doubt
Write a program that has a loop to read in ten strings and put them into...
Write a Java program that will create an array of Strings with 25 elements. Input Strings from the user and store them in the array until either the user enters “quit” or the array is full. HINT: the sentinel value is “quit” all lowercase. “Quit” or “QUIT” should not stop the loop. HINT: you have to use the equals method (not ==) when you are comparing two Strings. After the input is complete, print the Strings that the user entered...
1. Write a program to input a list of names (strings) from the user and store them in an ArrayList. The input can be terminated by entering the empty string or by entering the string “quit”. 2. Add further functionality to your program so that it searches the ArrayList to find the first string and the last string according to dictionary ordering and then prints out these strings (names). Do this exercise without sorting the names in the ArrayList. For...
IN MATLAB Write a script that will prompt the user for strings and read them in, store them in a cell array (in a loop), and then print them out.
Write a C++ program that reads strings until "QUIT" input, which then displays all strings in the reverse order they were entered.Tell the user the program will read strings until "QUIT" is entered.LoopAsk user for a stringIf the string is "QUIT" break the loop, otherwise store data3. Inform user data will be displayed in reverse.4. Display ALL strings in reverse.5. Free the space used to store the strings.
Let's put this into action, in rewriting a while loop to a for loop, in the context of the provided function allnum (strlist), which takes a list of strings strlist, and returns the list of strings which are made up exclusively of digits (in the same order the strings occurred in the original). Note that the rewritten function should behave identically to the original, and the only changes you should make are to the while loop and associated variables, to...
•Write a java program to read
10 numbers and print them in reverse order. Modify your program to
work for N numbers given by the user Extend your program to find
the average of these numbers Extend your program to find the
smallest number of these numbers Extend your program to find the
largest number of these numbers
•Write a program to read 10 numbers and print them in reverse order. Modify your program to work for N numbers given...
Write a decorator function in python that takes in 3 strings as arguments and returns them in reverse order.
Simple Python Program Working with strings Write a Python program to read in a number of strings from the user. Stop when the user enters “Done”. Then check if each of the strings contains all the letters of the alphabet. Print the results in the form of a dictionary, where they keys are the strings and the values are the Truth Value for the string, which you just calculated. Sample Run: Enter the strings: taco cat The quick brown fox...
6.2 - Write a program that reads numbers and adds them to a list if they aren't already contained in the list. When the list contains ten numbers, the program displays the contents and quits. Use Python 3 Please. Comments in code if you can
Write a program to Read and parse the “Nov ” lines and pull out the event message from the line. Count the number of messages from "kernel" using a dictionary. After all the data has been read, print the date with the most occurrence by creating a list of (count, date) tuples from the dictionary and then sorting the list in reverse order and print out the date which has the most occurrence.