HomePython Python How To Square A Number In Python? By HTuser 1 Use the exponent operator: `result = number ** 2` Use multiplication: `result = number * number` Use `pow()`: `result = pow(number, 2)` For a variable `x`: `square = x ** 2` For an integer or float: `square = value * value` Share FacebookXPinterestWhatsApp Suggested for You How To Sort A Python List? How To See Variables Data Type Python? How To Run A Python File? How To Make A List In Python? How To Execute Python Program? How To Add To A List In Python? Load more Trending Today How To Geotag Photos? How To Get A Car Title That Is Lost? How To Get Collections Removed From Your Credit Report? How To Make Human In Little Alchemy 2? How To Make A Repeater In Minecraft? How To Reset An iPhone? Load more