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...Feb 25, 2021 · 2 min readtomokimemo.hashnode.dev
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...Feb 20, 2021 · 2 min readtomokimemo.hashnode.dev
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 ...1AFeb 17, 2021 · 2 min readtomokimemo.hashnode.dev
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...Feb 12, 2021 · 1 min readtomokimemo.hashnode.dev
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 >= ...Feb 10, 2021 · 2 min readtomokimemo.hashnode.dev