2. Write a Python program that creates and array with the following floats (1.0, 8.3, 6.5, 6.6). Then reverse the order of the array. Answer in Python Please.
lst = [1.0, 8.3, 6.5, 6.6]
# print original list
print(lst)
# here reversing the list
for i in range(len(lst) // 2):
lst[i], lst[len(lst) - i - 1] = lst[len(lst) - i - 1], lst[i]
# print final list(containing the values in reverse order)
print(lst)

2. Write a Python program that creates and array with the following floats (1.0, 8.3, 6.5,...
write a python program that reads in 5 numeric values,store them in an array ,then prints them out in the reverse order that they were entered
USE IDLE PLATFORM FOR PYTHON PLEASE Write a Python program that creates a list that contains players of your favorite teams. The program then should ask the user to enter the name of a player. If the player is in your list, display a message indicating that the player is in the team. Otherwise, the program should display a message stating that the player isn't on the team.
PLEASE USE IDLE PLATFORM FOR PYTHON OTHERWISE IT WONT BE COMPATIBLE THANKS Write a python program that takes as input a string then displays the string in the reverse order: Write two versions of this Program: Version 1 slicing and Version 2 using loops
Write a Python program that creates a set of ten elements with random numbers between 1 and 100, and then prints out the values in sorted order
Please I need code in C++ Write a program that creates an int array of size 10, then uses a for-loop to populate the array with numbers from your favorite number pattern.
Write a C++ program that reads a string and creates a cyclical array. A cyclical array is an array when the last element is pointing to the first one. Then write a loop that uses pointers and loops through the array starting from the first element and finishes after it visits the first element 5 times.
Write a Java program in Eclipse. . Write a Java program that: 1. Creates an array of 100 integers. Initialize the array to have all zeros. 2. Puts even numbers starting from 6 (excluding multiples of 12) into the first 50 slots of the array above. So numbers 6,8,10,14,16,18,20,22,26, etc. go into the first 50 positions in the array. Print the array. 3. Puts random numbers between 45 and 55 into the second 50 slots of the array above (second...
I need this in python thank you
10.3 Code Practice Instructions Write a program that creates a 4 x 5 array called numbers . The elements in your array should all be random numbers between -30 and 30, inclusive. Then, print the array as a grid. For instance, the 2 x 2 array [[1,2],[3,4]] as a grid could be printed as: 1 2 34 Sample Output 18 -18 10 0 -7 -20 0 17 29 -26 14 20 27 4...
c++ program need help Write a function allBigger that takes 3 parameters: 2 arrays of floats and an int that represents the length of each array The function returns true if at every position, the value in the first array is strictly greater than the value in the 2nd array, false if not. For example: {1.3, 7.4, 2.51} and {1.0, 2.1, 3.2} would return false because 2.51 < 3.2
c++ program need help Write a function allBigger that takes 3 parameters: 2 arrays of floats and an int that represents the length of each array The function returns true if at every position, the value in the first array is strictly greater than the value in the 2nd array, false if not. For example: {1.3, 7.4, 2.51} and {1.0, 2.1, 3.2} would return false because 2.51 < 3.2