## How to Find the Divisors in C

The challenge Create a function named divisors/Divisors that takes an integer n > 1 and returns an array with all of the integer’s divisors(except for 1 and the number… Read More »How to Find the Divisors in C

## Solving Love vs Friendship in C

The challenge If　a = 1, b = 2, c = 3 … z = 26 Then l + o + v + e = 54 and f… Read More »Solving Love vs Friendship in C

## How to Bounce Balls in C

The challenge A child is playing with a ball on the nth floor of a tall building. The height of this floor, h, is known. He… Read More »How to Bounce Balls in C

## How to Find the Capitals in C

The challenge Instructions Write a function that takes a single string (word) as argument. The function must return an ordered list containing the indexes of… Read More »How to Find the Capitals in C

## How to Empty and Delete an S3 Bucket using the AWS CLI

Option 1 – Using AWS CLI Step 1 Step 2 Step 3 Option 2 – Using Python

## How to Calculate Variance in Python

If you need to calculate variance in Python, then you can do the following. Option 1 – Using variance() from Statistics module Option 2 –… Read More »How to Calculate Variance in Python

## How to add a List to a Set in Python

If you need to add a list to a set in Python, then you can do the following: Option 1 – Using Tuple Output: {1,… Read More »How to add a List to a Set in Python

## How to Remove Punctuation from a List in Python

If you have a Python list, and want to remove all punctuation, then you can do the following: First get all punctuation by using string.punctuation… Read More »How to Remove Punctuation from a List in Python

## How to Normalize a List of Numbers in Python

If you need to normalize a list of numbers in Python, then you can do the following: Option 1 – Using Native Python Option 2… Read More »How to Normalize a List of Numbers in Python

## How to Convert a Set to a String in Python

If you need to convert a set to a string in Python, then you can do one of the following: Option 1 – Using map()… Read More »How to Convert a Set to a String in Python

## How to Decrement a Loop in Python

If you need to decrement a loop in Python, then you can do the following: How to Decrement a loop in Python using -1 The… Read More »How to Decrement a Loop in Python

## How to Create Zip Archive of Directory in Python

If you need to create a zip of a directory using Python, then you can do the following: Create a Zip using shutil in Python

## How to Execute a Shell Script in NodeJS

If you need to execute a shell script in NodeJS, then you can use the exec keyword. Syntax: exec(command [, options] [, callback]

## How to Print Multiple Arguments in Python

If you need to print out multiple arguments using Python, then you can do one of the following: Option 1 – Using print Output: Something… Read More »How to Print Multiple Arguments in Python

## How to Copy Files between Two Nodes using Ansible

If you need to copy files between two (2) nodes, using Ansible, then you can do the following: This solution uses the synchronize module, specifically… Read More »How to Copy Files between Two Nodes using Ansible

## How to Delete Files and Folders in a Directory using Ansible

If you need to delete files and folders in a directory using Ansible, then you can do the following:

## How to Copy Multiple Files with Ansible

If you need to copy multiple files using Ansible, then you can do the following: How to Copy Multiple Files with Ansible Look into using… Read More »How to Copy Multiple Files with Ansible