question about exercise

30 views
Skip to first unread message

Rachel King

unread,
Sep 16, 2020, 5:24:04 PM9/16/20
to sage-support
The textbook for a course I am taking says the following,
Suppose you have three tests in your linear algebra class and your scores are 90, 100, and 98. In the Sage cell below, add your scores together and call the result total. On the next line, find the average of your test scores and print it.

How would this look typed in sage?

Dima Pasechnik

unread,
Sep 16, 2020, 5:27:01 PM9/16/20
to sage-support
basically, the same as if it was typed in Python.

>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/7edcc588-657f-4589-bcf7-9fa526e06949n%40googlegroups.com.

Rachel King

unread,
Sep 16, 2020, 5:39:33 PM9/16/20
to sage-support
I dont know how to code in python

Emmanuel Charpentier

unread,
Sep 16, 2020, 5:48:50 PM9/16/20
to sage-support
Le mercredi 16 septembre 2020 à 23:39:33 UTC+2, rachel...@gmail.com a écrit :
I dont know how to code in python

That may be the point  of the exercise, don't you think ?
 
HTH,
Reply all
Reply to author
Forward
0 new messages