class Point:
"""represents a point in 2-D space"""
blank=Point()
blank.x=3.0
blank.y=4.0
print ’(%g, %g)’ % (blank.x, blank.y)
the print part of the code does not seem to work, I know in python 3.x the print function is now written print() but I've tried adapting it to python3.x but it keeps coming up with an error saying invalid character in identifier.
Please put me through.

New Topic/Question
Reply




MultiQuote







|