>>>mymedicinesarerighthere You need to break this word down in the following way: >>>[m, ym ,edi ,cine ,sarer ,ighthe, re]

# Tag: ym

I have a text file which contains the columns as below – 1 a “x y” 2 b “p q” 3 c “m n” … Now I want to read each column. So far I have written the simple program f = open(file,’r’) for line in f: columns = line.split() name = column[2:4] print name […]

I want to exclude multiple rotations/mirrors of a list in my solutions of the predicate. I’ll give an example of what I understand are rotations/mirrors of a list: [1,2,3,4,5] [2,3,4,5,1] [3,4,5,1,2] [5,4,3,2,1] I have to find a predicate that delivers unique sequence of numbers from 1 to N, according to some constraints. I already figured […]

I have tried to create an algorithm that tells you if a point is inside a simple polygon.I do that by finding whether the point crossed an odd number of borders.If it crossed an even number of borders we are outside the polygon and if the point doesn’t cross a border,it just walks on it […]