penelopemaxwell penelopemaxwell
  • 03-02-2022
  • Computers and Technology
contestada

How to do codehs 7.4.4 Square with Return Values?

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 11-02-2022

The codehs 7.4.4 program is meant to return the square of a number

How to write the actual program

The program in Python, where comments are used to explain each line is as follows:

#This gets input for the number

userNum = int(input("Number: "))

#This prints the square of the number

print(userNum**2)

Read more about Python programs at:

https://brainly.com/question/16397886

Answer Link

Otras preguntas

compare chief josephs remarks with the "i have a dream" speech by Martin Luther king, jr. in what ways are they alike?
the linear equation y=2x represents the cost y of x pounds of pears. which order pair lies on the graph of the equation? A. (2,4) B. (1,0) C.(10,5) D. (4,12)
Fin the value of f(-2) for the function f(x)=4x+10
Why does agility help in netball?
Mrs. Roswell is a new Medicare beneficiary who has just retired from retail work. She is interested in selecting a Medicare Part D prescription drug plan. She t
Given that IG is perpendicular to FT, which of the following statements is true?
Combine the following sentences using appropriate transitions or connectors. A) My father’s voice was deep. B) It was concerned. C) His voice broke my spell.
A compound consisting of atoms of small atomic mass is more likely to require what
pls help me with is question
If angle a = 15 degrees, what does angle b equal