Python Forum
is there a single function to confine a number between two others?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is there a single function to confine a number between two others?
#1
is there a single function to confine a number between two others? i know i can do it with min() and max(), but that actually looks ugly. this should use 3 arguments.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
is there a single function to confine a number between two others? - by Skaperen - Nov-24-2020, 06:06 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Checking the number of arguments a function takes Chirumer 3 2,170 Jul-06-2021, 04:56 PM
Last Post: Chirumer
  Why is the function returning None for a * b instead of number? omm 10 4,324 Nov-05-2020, 01:17 PM
Last Post: omm
  RuntimeError: Optimal parameters not found: Number of calls to function has reached m bntayfur 0 6,159 Aug-05-2020, 04:41 PM
Last Post: bntayfur
  basic random number generator in replace function krug123 2 2,055 Jul-31-2020, 01:02 PM
Last Post: deanhystad
  Counting number of occurrences of a single digit in a list python_newbie09 12 5,567 Aug-12-2019, 01:31 PM
Last Post: perfringo
  My function won't return the sum unless the last paramater is an odd number. Maximuskiller78 1 2,335 Sep-29-2018, 03:11 AM
Last Post: ichabod801
  Write lambda function in pyhhon to coy data from multiple JSON into a single JSON fil anandmn85 2 4,254 Apr-19-2018, 05:56 AM
Last Post: anandmn85
  argument parser: to execute single function, and subsequent functions also raghu 10 5,886 Mar-12-2018, 06:57 AM
Last Post: wavic
  function for a single string number of syllables tebirkes 2 4,487 Nov-02-2016, 03:44 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