Question: PYTHON PROGRAMMING Strange communication has been intercepted between two alien species at war. NASAs top linguists have determined that these aliens use a weird numbering

PYTHON PROGRAMMINGPYTHON PROGRAMMING Strange communication has been intercepted between two alien species at

Strange communication has been intercepted between two alien species at war. NASAs top linguists have determined that these aliens use a weird numbering system. They have symbols for various numeric values, and they just add all the values for the symbols in a given numeral to calculate the number. NASA's linguists have given you the following table of symbols and their numerie values. Since they have a lot of these numbers to compute, they want you to write a function that thev can use to automate this task. Sym alue 1024 Thus a! ya!U!NaU r nts a value of 1095 (see table below for an explanation NumeralVlOccurrencesTotal Value Running Total 1024 598 1024 1 x 598 598 3 x 121 = 363 3 x 42 = 126 598 961 1087 1093 1095 12 ction ienNumbers t one string parameter s, and returns the integer value represented by s. Since aliens only know these characters you may assume that no character in s outside of this set: [T,y, !,a, N, U Callenge: try to make the whole body of this function only one line long. 1095 >>alienNunbers (aaaUUU") 129 alienNumbers()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!