Python Forum
Help with basic weight converter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with basic weight converter
#2
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".
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Weight Distribution 11drk9 11 872 Mar-13-2024, 06:08 AM
Last Post: Pedroski55
  currency converter using forex-python preethy12ka4 8 856 Mar-08-2024, 06:59 PM
Last Post: preethy12ka4
  Python Networkx: Visualize an edge weight with a bubble/circle uvw 0 2,051 Sep-01-2021, 06:26 AM
Last Post: uvw
  Converter Souls99 2 2,438 Aug-01-2020, 01:27 AM
Last Post: Souls99
  Help me get this image converter code working? NeTgHoSt 0 2,127 Jul-14-2020, 10:36 PM
Last Post: NeTgHoSt
  Currency converter Scott 5 3,100 Jun-14-2020, 11:59 PM
Last Post: Scott
  How to use 2to3.py converter under Windows OS samsonite 2 7,384 Mar-02-2019, 05:49 AM
Last Post: samsonite
  Can't get a downloaded file converter to work Godotisnothere 1 3,229 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