How to write this (Java) in Python?
class Test
{
private String test1 = "test";
private static void main(String args[])
{
System.out.println("test" + test1);
}
}
Since Python supports code outside of classes, the equivalent is as simple as:
test1 = "test"
print("test" + test1)
UPDATE: To get the args:
import sys
print sys.argv
You really should start with the tutorial!
test1is an instance variable andmainis a static function.