Зміст курсу
Algorithms and Data Structures Overview
Algorithms and Data Structures Overview
Array Data Structure
import numpy as np from lolviz import * # Assuming this library is for visualization of Python objects from IPython.display import display_png # Importing `display_png` function for displaying PNG images # Generate a random array of integers between 0 and 100 with a size of 10 real_array = np.random.randint(0, 100, size=(10)) # Print the data type of the array values print("Array data type is: ", real_array.dtype) # Display a visual representation of the array using the `objviz` function from the `lolviz` library display_png(objviz(real_array))
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 1