import sys
class ostream:
def __init__(self,file):
self.file = file
def __lshift__(self,obj):
self.file.write(str(obj));
return self
cout = ostream(sys.stdout)
cerr = ostream(sys.stderr)
endl = '\n'
age = 23
name = 'albert'
cout << 'Hello,world!' << endl
cout << 'Name:' << name << endl << 'Age:' << age << endl