Seudónimo Seudónimo
  • 30-11-2021
  • Computers and Technology
contestada

Write a python program to print the square of all numbers from 0 to n. Where n is user input.

Respuesta :

ab33has
ab33has ab33has
  • 30-11-2021
n = int(raw_input("Enter #:")) = [do_square(i) for i in range(1,n+1)]
Answer Link

Otras preguntas

The zeros of the function f(x) = (x + 2)^2 - 25 are (1) -2 and 5 (3) -5 and 2 (2) -3 and 7 (4) -7 and 3
A space station moves in a circular orbit around Earth. Which of the following statements describes the centripetal force acting on the space station?
(02.02 LC) Which medieval European ruler led a powerful force of Frenchmen across the English Channel and eventually defeated the English? a. William the Conque
The following sentence is an example of which primary English sentence pattern? The toddler tossed his father the ball. a. Subject+ action verb+ indirect object
A 0.145 kg baseball is thrown horizontally at 15 m/s from a platform, so that it starts at 5.2 m above the ground. How much has its kinetic energy increased whe
_____ are incomplete sentences. a. Comma splices b. Sentence fragments c. Run-on sentences d. Complex sentences
Which type of work becomes more common in a postindustrial society? a. Work in wholesale stores b. Work on an assembly line c. Work in the primary economy d. Wo
Which compound contains both ionic and covalent bonds? (1) CaCO3 (3) MgF2 (2) PCl3 (4) CH2O
In which sentence is the number written correctly? a. The water temperature at the beach is sixty-eight degrees. b. My uncle will turn thirty one on Tuesday. c.
Is vinegar an element, compound or mixture?