Subject: solve "abs(x)=2" and question in "print" function
From: Raymond Toy
Date: Tue, 28 Oct 2008 13:01:21 -0400
?? ???? wrote:
>> > 2. the print function that has 'new line ' (i.e skip line ) function ??
>> > as follow : I want to give a question and it have 2 sub items
>> >
>> > A:[1,2], B:[3,4],C:[8,7],solve
>> > (1) the mid p oint of A,,B
>> > (2) th! e gravity point of the triangle ABC
>> >
>> > I usual ly typing :
>> > print ('A:[1,2], B:[3,4],C:[8,7],solve (1) the mid p oint of A,,B
> (2) the gravity point of the triangle ABC');
Why not use 3 prints, one for each line? Or even something like
print("A:[1,2]
(1) the midpoint
(2) the gravity point");
Ray