Python Forum
Function not returning correct value
Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function not returning correct value
#4
Or, in this case:

def letter_value(letter):
    return "abcdefghijklmnopqrstuvwxyz".index(letter)
Reply


Messages In This Thread
RE: Function not returning correct value - by stullis - Jan-11-2019, 12:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Why my function is returning None? PauloDAS 6 1,946 Jul-17-2022, 11:17 PM
Last Post: Skaperen
  The formula in the function is not giving the correct value quest 1 1,304 Mar-30-2022, 03:20 AM
Last Post: quest
  Pausing and returning to function? wallgraffiti 1 2,205 Apr-29-2021, 05:30 PM
Last Post: bowlofred
  Why is the function returning None for a * b instead of number? omm 10 4,465 Nov-05-2020, 01:17 PM
Last Post: omm
  str.find() not returning correct index. DreamingInsanity 10 4,479 Aug-18-2020, 05:41 PM
Last Post: DreamingInsanity
  Having hard time understanding the function self-returning itself twice jagasrik 2 2,581 Aug-15-2020, 08:50 PM
Last Post: deanhystad
  Returning Value from Function with Trackbars vicpylon 3 2,133 May-24-2020, 11:28 PM
Last Post: bowlofred
  Nested Recursive Function not Returning Etotheitau 2 2,366 May-09-2020, 06:09 PM
Last Post: Etotheitau
  Getting the error like function not defined .. suggest correct code raghava 1 2,120 Feb-04-2020, 11:20 PM
Last Post: micseydel
  Not quite getting the correct Output from a function twinpiques 3 2,748 Aug-04-2019, 11:53 PM
Last Post: twinpiques

Forum Jump:

User Panel Messages

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