Python Forum
Help with basic weight converter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with basic weight converter
#3
(Jun-29-2022, 02:16 PM)ndc85430 Wrote: Non-empty strings, e.g. "k" on line 4 evaluate to True, so your or expression is wrong. The right hand side needs to check unit == "k".

I can't believe it was that simple! makes perfect sense now that I can see it. I've been pulling my hair out for about an hour with this
Reply


Messages In This Thread
RE: Help with basic weight converter - by ndc85430 - Jun-29-2022, 02:16 PM
RE: Help with basic weight converter - by PythonSquizzel - Jun-29-2022, 02:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Weight Distribution 11drk9 11 2,943 Mar-13-2024, 06:08 AM
Last Post: Pedroski55
  currency converter using forex-python preethy12ka4 8 3,872 Mar-08-2024, 06:59 PM
Last Post: preethy12ka4
  Python Networkx: Visualize an edge weight with a bubble/circle uvw 0 2,917 Sep-01-2021, 06:26 AM
Last Post: uvw
  Converter Souls99 2 3,181 Aug-01-2020, 01:27 AM
Last Post: Souls99
  Help me get this image converter code working? NeTgHoSt 0 2,726 Jul-14-2020, 10:36 PM
Last Post: NeTgHoSt
  Currency converter Scott 5 4,320 Jun-14-2020, 11:59 PM
Last Post: Scott
  How to use 2to3.py converter under Windows OS samsonite 2 8,716 Mar-02-2019, 05:49 AM
Last Post: samsonite
  Can't get a downloaded file converter to work Godotisnothere 1 3,842 Jan-24-2017, 06:01 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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