Python Forum
My first temperature converter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My first temperature converter
#4
You need to enter the temperature and number two times because the inputs are asked for twice
def main():
    displayIntro()
    tempType = inputTempType() # first time asking
    tempValue = inputTempValue() # first time asking

    continueChoice = "Y"

    while continueChoice == "Y" or continueChoice == "N":
        tempType = inputTempType() # second time asking
        tempValue = inputTempValue() # second time asking
Reply


Messages In This Thread
My first temperature converter - by TheLowEndTheory - Oct-17-2020, 07:47 PM
RE: My first temperature converter - by jefsummers - Oct-17-2020, 08:07 PM
RE: My first temperature converter - by Yoriz - Oct-17-2020, 10:41 PM
RE: My first temperature converter - by buran - Oct-18-2020, 06:53 AM
RE: My first temperature converter - by buran - Oct-18-2020, 04:39 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Temperature converter Help (ASAP) Edison_Weng 1 2,793 Apr-16-2018, 01:55 PM
Last Post: stranac
  how to get the highest monthly average temperature? nikhilkumar 2 6,953 Jul-25-2017, 02:33 PM
Last Post: DeaD_EyE
  Using a range and for loop - temp converter rattlerskin 5 15,584 Jan-20-2017, 09:15 PM
Last Post: sparkz_alot
  Temp Converter with Kelvin vader33 7 12,054 Oct-02-2016, 05:16 AM
Last Post: vader33

Forum Jump:

User Panel Messages

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