Wednesday, December 29, 2010

sys: writing a concatenated program without space

##here is the program:

name= raw_input("what is your name:")
sex= raw_input("are you male or female:")
height= input("Height:")
weight= input("Weight:")

import sys
write=sys.stdout.write
write (name)
write (sex)
write (height)
write (weight)

###end

for more informations about "sys", go :

sys — System-specific parameters and functions

No comments:

Post a Comment