You are not logged in.

#1 2011-02-27 01:18:13

markbabc
Member
Registered: 2010-11-06
Posts: 157

Python to C# question (about list to array)

Ok so for my programming class im created a project and im attempting to port over a python script of mine into C#.

In the class we are about to get into arrays but for the port i need to use them. I use a 2D list in python and iv managed to create one in C# but theres a line in python i cant figure out how to convert.

The script simplifies radicals

Heres the line:             if x * y == number and [y,x] not in list_of_numbers:

Heres the entire python script: http://codepad.org/dhWFJVuT

Any help would be great!

Offline

Board footer

Powered by FluxBB