1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Inessa05 [86]
2 years ago
8

Write a program that receives an character and displays its Unicode. Here is a sample run: Enter an character: E The Unicode for

the character E is 69
Computers and Technology
1 answer:
earnstyle [38]2 years ago
4 0

Answer:

<em>The program written in Python programming language is as follows;</em>

<em>Comments are not used because the code is self explanatory; However, see explanation section for line by line explanation</em>

char = input("Enter a character: ")

print("The Unicode for the character " + char[0] + " is", ord(char[0]))

Explanation:

<em>Line 1 of the program prompts the user for an input of a character</em>

char = input("Enter a character: ")

<em>The next line prints the Unicode equivalent of the input text. However, if the input length is more than 1, the program will only consider the first character and discard the rest</em>

print("The Unicode for the character " + char[0] + " is", ord(char[0]))

You might be interested in
Edhesive 6.8 lesson practice answers
FromTheMoon [43]

Answer:

1.) 25 ; 15 ; 15

2.) 50 ; 15 ; 50

Explanation:

In the first function written :

The variable val was initially decaled or assigned a value of 25 and that was what was printed first.

However, after the example function was written, the val variable was finally assiagned a value of 15 within the function. However, it was also declared that the global variable takes uonthe val value. Hence, the val variable initially assigned a value, of 25 changes to 15 globally.

For the second code :

From the top:

Val was assigned a value of 50 ;

Hence,

print(val) gives an output of 50

Within the function definition which prints the value of val that is assigned a value of 25 within the function.

Since tbe global variable isnt reset.

Printing Val again outputs 50;since ito is outside the function.

6 0
2 years ago
Given a line of text as input, output the number of characters excluding spaces, periods, or commas. If the input is:
enot [183]

In python 3.8:

print(len([x for x in input("Enter your text: ") if x not in "., "]))

I hope this helps!

3 0
3 years ago
Select the best ansiver for each question below
Ratling [72]

Answer:

the answer is going to be system

7 0
2 years ago
I lost my account!-_-​
exis [7]

Answer:

and?

Explanation:

thx for the points btw

7 0
2 years ago
Select all that apply.
Nady [450]
1 and 2 since it says does not
5 0
2 years ago
Read 2 more answers
Other questions:
  • What protocol must be supported by routers in order to utilize remote assistance easy connect?
    10·1 answer
  • Using an array, double each of the following values and print each result: values = [1.1, 10, 4.55, 30004, 0.2]
    7·1 answer
  • A well-diversified portfolio needs about 20-25 stocks from different categories is this True or False?
    6·2 answers
  • A spreadsheet is an interactive computer program used for
    5·1 answer
  • ____________ hackers break into systems legally for non-malicious reasons such as to test system security vulnerabilities
    7·2 answers
  • Find a 95% confidence interval for the mean failure pressure for this type of roof panel.The article "Wind-Uplift Capacity of Re
    7·1 answer
  • Point out the wrong statement:
    7·1 answer
  • Melissa is writing a class called Cell. Which method has she set up to return a double?
    7·1 answer
  • The average numbers of shares a piece of content receives is known as its:
    7·1 answer
  • Pa sagot po TLE-10<br>need den po Ng solution thank you​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!