Computer Science, asked by vikkychoudhary2004, 2 months ago

pls answer correctly otherwise reported. I will mark as brainliest and will also give thanks to the correct answer​

Attachments:

Answers

Answered by allysia
4

Answer:

The output should be :

absol

Explanation:

The program compares the Unicode of the alphabets one by one. You can yourself test that using ord("a") function.

In this case ord("t") = 116 and since all the other letters before "u" come before  "t" they have lower unicode values.

Here a loop I used to find the ord values:

\\\tt for \ i \ in \ "abcde f g hijklmnopqrstuvwxyz": \\\tt  {\qquad{\qquad print("The\ unicode \ values\ of", i,":", ord(i)) }} \\

And the output it generates is:

\\\tt The \ unicode\ values\ of a : 97 \\\tt The \ unicode\ values\ of b : 98 \\\tt  The \ unicode\ values\ of c : 99\\\tt  The \ unicode\ values\ of d : 100\\\tt The \ unicode\ values\ of e : 101\\\tt The \ unicode\ values\ of f : 102\\\tt The \ unicode\ values\ of g : 103\\\tt The \ unicode\ values\ of h : 104 \\\tt The \ unicode\ values\ of i : 105\\\tt

\\\tt The \ unicode\ values\ of i : 105 \\\tt The \ unicode\ values\ of j : 106 \\\tt  The \ unicode\ values\ of k : 107  \\\tt The \ unicode\ values\ of l : 108 \\\tt The \ unicode\ values\ of m : 109 \\\tt The \ unicode\ values\ of n : 110 \\\tt The \ unicode\ values\ of o : 111\\\tt The \ unicode\ values\ of p : 112\\\tt The \ unicode\ values\ of q : 113\\\tt The \ unicode\ values\ of r : 114\\\tt The \ unicode\ values\ of s : 115\\\tt

\\\tt The \ unicode\ values\ of t : 116 \\\tt  The \ unicode\ values\ of u : 117 \\\tt The \ unicode\ values\ of v : 118 \\\tt The \ unicode\ values\ of w : 119 \\\tt The \ unicode\ values\ of x : 120 \\\tt The \ unicode\ values\ of y : 121 \\\tt The \ unicode\ values\ of z : 122\\\tt

Now you can use these values and compare it yourself.


Anonymous: Superb, Excellent ✌
allysia: tq
Similar questions