Question: Problem 1 Write a python program to read 5 float numbers from the user, store the numbers in an array. Problem 2 Consider the following

Problem 1

Write a python program to read 5 float numbers from the user, store the numbers in an array.

Problem 2

Consider the following arrays:

A= [10,20,30,40,50,60,70]

B= [12.4,15.7,76.8,6.8]

Write a python program to store the addition of A and B in a third array C.

Problem 3

Create an array of integers and then preform the following operations:

  1. append the value 100 to the array.
  2. ask the user to enter a value and then count the number of occurrences of this value in the array.
  3. create another array then extend the first append all its items to the first array (using extend).
  4. find the index of a certain number in the array.
  5. insert an element to a specific position of the array.
  6. reverse the array.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!