UCS548 UCS538 - Data Science Fundamentals Solution
Assignment 3
1. Create two vectors as A = (23, 34 ,56,3 ,0, 0 ) and B=(“c”, “b”, “a”) 2. Generate the sequences as 1:n, m:n and by a difference of 0.6. 3. Divide the range 1 to 50 in 10 equal intervals. 4. Print the pattern 3, 4, 5 five times. 5. Generate 8 random numbers. 6. Create a vector as C=(2, 3, 4, 5, 6, 7) and add it to vector A in question 1. 7. Add D= (6, 7) to A. 8. Write a statement to find the square root of each number in C. 9. Find the length of A, B, C above.