I wrote the same program in python as below in C#. You can compare the code difference.
using System;
using System.Collections.Generic;
namespace function_print
{
class Program
{
static void Main()
{
List abc_list = new List() { "a", "b", "c" };
List num_list = new List() { 1, 2, 3 };
foreach (string value in abc_list)
{
foreach (int num_value in num_list)
{
System.Console.WriteLine("{0} {1}", value, num_value);
}
}
}
}
}