Python Forum
Prompting user for number, reading number, squaring it and returning result
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prompting user for number, reading number, squaring it and returning result
#1
Hello.
What would be the code for a program that prompts the user for a number, reads that number, squares that number, and returns the resulting number?
Thank you!
Reply


Messages In This Thread
Prompting user for number, reading number, squaring it and returning result - by JHPythonLearner - Sep-12-2018, 10:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  intering int number akbarza 1 188 Apr-28-2024, 08:55 AM
Last Post: Gribouillis
Brick Number stored as text with openpyxl CAD79 2 505 Apr-17-2024, 10:17 AM
Last Post: CAD79
  [SOLVED] Pad strings to always get three-digit number? Winfried 2 377 Jan-27-2024, 05:23 PM
Last Post: Winfried
  Prime number detector Mark17 5 844 Nov-27-2023, 12:53 PM
Last Post: deanhystad
  Create X Number of Variables and Assign Data RockBlok 8 993 Nov-14-2023, 08:46 AM
Last Post: perfringo
  find the sum of a series of values that equal a number ancorte 1 519 Oct-30-2023, 05:41 AM
Last Post: Gribouillis
  regex findall() returning weird result Radical 1 673 Oct-15-2023, 08:47 PM
Last Post: snippsat
  WHILE LOOP NOT RETURNING USER INPUT AFTER ZerroDivisionError! HELP! ayodele_martins1 7 1,092 Oct-01-2023, 07:36 PM
Last Post: ayodele_martins1
  capturing multiline output for number of parameters jss 3 833 Sep-01-2023, 05:42 PM
Last Post: jss
  Sequential number for rows retrieved and storing the Primary UKey to the line number GYKR 2 604 Aug-22-2023, 10:14 AM
Last Post: GYKR

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020