Daily Challenge: Calculate the ratios of array elements/Print the decimal value of itTASK: Calculate the ratios of integers in an array that are positive, negative, and zero. Print the decimal value of each fraction on a new line with six places after the decimal. Python: def plusMinus(arr): size = len(arr) plus = [i for i in ar...2 min read·tomokimemo.hashnode.devFeb 25, 2021
Miss your office? Sound Of Colleagues can help youIt's been a while since we got into WFH custom and it seems like we will stay in the custom a bit longer. It's nice to work in a comfortable environment but sometimes (most of the time) it's a bit hard to focus at home with no one to watch you for. I...2 min read·tomokimemo.hashnode.devFeb 20, 2021
Make Your Python Life Easier With IcecreamI often confused about what I was printing when I debug in Python. Example: str1 = "Apple" str2 = "Orange" print(str1) print(str2) The output would be: Apple Orange It is not easy to tell what variable I am printing. Well, it is in the above simple ...2 min read·tomokimemo.hashnode.dev1AFeb 17, 2021
Daily Challenge: Concatenate/Sort a StringTASK: Concatenate and sort two strings. The letters must be distinct in output C#: using System; using System.Linq; using static System.Console; namespace demo { class Program { static void Main(string[] args) { W...1 min read·tomokimemo.hashnode.devFeb 12, 2021
Daily Challenge: Moving LettersTASK: Write a program that moves each letter in the string forward 10 letters. *I'm using icecream for debugging purpose Python3: from icecream import ic def move_ten(st): result = "" for i in st: ordI = ord(i) if ordI >= ...2 min read·tomokimemo.hashnode.devFeb 10, 2021