Post History
Python 3, 20 19 bytes lambda n:n**.5%1==0 -1 byte thanks to @shaggy : 0.5 -> .5 Try it online!
Answer
#2: Post edited
# [Python 3], 20 bytes- <!-- language-all: lang-python -->
lambda n:n**0.5%1==0[Try it online!][TIO-kryx8l4m]- [Python 3]: https://docs.python.org/3/
[TIO-kryx8l4m]: https://tio.run/##K6gsycjPM/6fZhvzPycxNyklUSHPKk9Ly0DPVNXQ1tbgf1p@kUKmQmaeQrSBjqGOmYmOhYWOkaGJuYmFsZmJeawVF2dBUWZeiUamJoyVBmTDOerqmv8B "Python 3 – Try It Online"
- # [Python 3], <del>20</del> 19 bytes
- <!-- language-all: lang-python -->
- lambda n:n**.5%1==0
- -1 byte thanks to @shaggy : 0.5 -> .5
- [Try it online!][TIO-kryxyumv]
- [Python 3]: https://docs.python.org/3/
- [TIO-kryxyumv]: https://tio.run/##K6gsycjPM/6fZhvzPycxNyklUSHPKk9LS89U1dDW1uB/Wn6RQqZCZp5CtIGOoY6ZiY6FhY6RoYm5iYWxmYl5rBUXZ0FRZl6JRqYmjJUGZMM56uqa/wE "Python 3 – Try It Online"
#1: Initial revision
# [Python 3], 20 bytes <!-- language-all: lang-python --> lambda n:n**0.5%1==0 [Try it online!][TIO-kryx8l4m] [Python 3]: https://docs.python.org/3/ [TIO-kryx8l4m]: https://tio.run/##K6gsycjPM/6fZhvzPycxNyklUSHPKk9Ly0DPVNXQ1tbgf1p@kUKmQmaeQrSBjqGOmYmOhYWOkaGJuYmFsZmJeawVF2dBUWZeiUamJoyVBmTDOerqmv8B "Python 3 – Try It Online"