About 50 results
Open links in new tab
  1. python - Check if a number is a perfect square - Stack Overflow

    How could I check if a number is a perfect square? Speed is of no concern, for now, just working. See also: Integer square root in python.

  2. python - Squaring all elements in a list - Stack Overflow

    def square(a): for i in a: return i**2 But this only squares the last number of my array. How can I get it to square the whole list?

  3. Square a number with functions in python - Stack Overflow

    This answer is severely confused: It talks about python3, while the question (and the answer!) use python2. (old print syntax, raw_input). Also, why are you talking about sqrt, when the question is …

  4. How do I calculate square root in Python? - Stack Overflow

    Jan 20, 2022 · Python sqrt limit for very large numbers? square root of a number greater than 10^2000 in Python 3 Which is faster in Python: x**.5 or math.sqrt (x)? Why does Python give the "wrong" …

  5. while loop - Square number sequence in Python - Stack Overflow

    1 I'm new to python and I am trying to make a code to print all the square numbers until the square of the desired value entered by the user.

  6. Time it takes to square in python - Stack Overflow

    May 7, 2022 · Time it takes to square in python Asked 3 years, 9 months ago Modified 1 year, 9 months ago Viewed 3k times

  7. python - Creating a list of square of numbers in a given range - Stack ...

    I'm a new to python, and I'm trying to create a function that lets the user input x and y and will give the output of the powers of those numbers in a loop, so create_list(2,8) returns the list …

  8. How can I test if a number is a square number in Python?

    How can I test if a number is a square number in Python? [duplicate] Asked 12 years, 9 months ago Modified 3 years, 3 months ago Viewed 2k times

  9. python - How to make a list of square numbers? - Stack Overflow

    Jul 14, 2020 · You should probably make a list of numbers you want to square and then loop through that list with a "for number in number_list:" function. This loop will run exactly X times, where X is the …

  10. input - Python - Check if a number is a square - Stack Overflow

    6 The main idea of Python philosophy is to write simple code. To check if a number is an perfect square: