HackerRank Python Solution - Numpy Topic - Concatenate

Concatenate:

Two or more arrays can be concatenated together using the concatenate function with a tuple of the arrays to be joined:

import numpy

array_1 = numpy.array([1,2,3])
array_2 = numpy.array([4,5,6])
array_3 = numpy.array([7,8,9])

print numpy.concatenate((array_1, array_2, array_3))    

#Output
[1 2 3 4 5 6 7 8 9]

HackerRank Python Solution - Numpy Topic - Transpose and Flatten

Question 2 - Transpose and Flatten

Task

You are given an NxM integer array matrix with space-separated elements (N= rows and M= columns).
The question is to print the transpose and flatten the results.

Input Format

The first line contains the space-separated values of N and M.
The next N lines contain the space-separated elements of M columns.

HackerRank Python Solution - Numpy Topic - Arrays

Question1 - Arrays:

Task

You are given a space-separated list of numbers.
Your task is to print a reversed NumPy array with the element type float.

Input Format

A single line of input containing space-separated numbers.

Library List in AS400

Library List: 
Library List in AS400
  • A library list is a list of libraries maintained for each user session with the libraries arranged in decreasing order of priority.
  • Whenever an object is referenced in command without a library, then the system starts checking for the object in all the libraries in the library list.
  • If the object is found in the first library, then the system picks that object from that first library.
  • If the object is not found in any library in the library list then the system will throw an error.

How to Check If Hard Drive is SSD or HDD in Windows 10

Ever wondered how to check the type of Hard Drive installed on your computer. Here, we will see two different methods to check if Hard Drive is SSD (Solid State Drive) or HDD (Hard Disk Drive) in windows 10.

Method 1: Using Disk Defragmenter/Windows Drive Optimizer

  • Type 'Defrag' in the search bar of the start menu and select "Defragment and Optimize Drives - App".

HTML - Horizontal Line

Horizontal line:

  • A horizontal line in HTML is defined by using the tag <hr>. Here hr stands for a horizontal rule.
  • <hr> tag is used to insert a thematic break in an HTML page or to separate the contents on the page.
  • <hr> tag is an empty tag that doesn't have a closing/end tag.
  • It comprises of the below attributes

HTML - Images

  • HTML <img> tag is used to display  images in the web page.
  • The images are just linked, not inserted into the web page. The <img> creates a holding space for the image.
  • The <img> tag is an empty tag that doesn't have a closing tag. It contains only attributes.
  • The required attributes of the <img> tag are
    • src - Specifies the path of the image
    • alt - Specifies alternate text for the image
      <img src="url" alt="alternate-text">

You might also like

Deploy your Django web app to Azure Web App using App Service - F1 free plan

In this post, we will look at how we can deploy our Django app using the Microsoft Azure app service - a free plan. You need an Azure accoun...