Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function to convert
#2
i would use a dictionary to associate the number with the text. In this wa yyou wouldnt even really need a function as there wouldnt be much code. Just return dict[NUM_AS_INT] to get the text num
Recommended Tutorials:
Reply


Messages In This Thread
Function to convert - by slehee - Oct-22-2017, 07:59 PM
RE: Function to convert - by metulburr - Oct-22-2017, 08:13 PM
RE: Function to convert - by slehee - Oct-22-2017, 08:20 PM
RE: Function to convert - by sparkz_alot - Oct-22-2017, 08:38 PM
RE: Function to convert - by slehee - Oct-22-2017, 08:44 PM
RE: Function to convert - by sparkz_alot - Oct-22-2017, 08:52 PM
RE: Function to convert - by slehee - Oct-22-2017, 08:57 PM
RE: Function to convert - by sparkz_alot - Oct-22-2017, 09:04 PM

Forum Jump:

User Panel Messages

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