Python Forum
Function for returning absolute numbers
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function for returning absolute numbers
#3
raw_input() always returns a string.  So your type checking will always fail, since a string is never an int or a float.
Reply


Messages In This Thread
RE: Function for returning absolute numbers - by nilamo - Oct-02-2017, 05:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Random Generator: From Word to Numbers, from Numbers to n possibles Words Yamiyozx 2 1,467 Jan-02-2023, 05:08 PM
Last Post: deanhystad
  Convert list of numbers to string of numbers kam_uk 5 3,061 Nov-21-2020, 03:10 PM
Last Post: deanhystad
  Can anyone spot why this function is returning an empty list? hhydration 2 1,871 Nov-18-2020, 06:16 AM
Last Post: deanhystad
  HELP - Returning self numbers lower or equal to my argument Kokuzuma 4 2,760 Nov-01-2018, 06:35 PM
Last Post: Kokuzuma
  Why is this function returning none? wlsa 2 5,828 Sep-30-2018, 01:36 PM
Last Post: gruntfutuk
  Regular Expressions in Files (find all phone numbers and credit card numbers) Amirsalar 2 4,138 Dec-05-2017, 09:48 AM
Last Post: DeaD_EyE
  Function not returning correct value TsG009 4 4,161 Nov-24-2017, 09:07 PM
Last Post: sparkz_alot
  PyCharm Tutorial Links/Videos For Absolute Beginner? pyJim 3 5,266 Jan-24-2017, 10:40 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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