Python Forum
Converting String to Integer Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Converting String to Integer Python
#6
(Aug-02-2019, 08:04 PM)ichabod801 Wrote: I would suggest using a = int(a) instead. That way it will still work if a is not '1'.

Seems reasonable. I have added that to my code.

Thanks.
Reply


Messages In This Thread
Converting String to Integer Python - by Johnny1998 - Aug-02-2019, 07:23 PM
RE: Converting String to Integer Python - by Yoriz - Aug-02-2019, 07:32 PM
RE: Converting String to Integer Python - by Johnny1998 - Aug-02-2019, 08:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using an integer to manipulate a string/text variable rexyboy2121 1 1,733 Apr-22-2020, 01:37 AM
Last Post: michael1789
  Trouble converting a string into an int DreDigital 2 1,638 Jan-29-2020, 09:41 PM
Last Post: DreDigital
  Determine if string is integer jrodencal 12 4,115 Oct-15-2019, 01:39 PM
Last Post: jefsummers
  Converting pseudocode to Python qwertyK 3 23,657 Oct-24-2017, 01:41 PM
Last Post: qwertyK

Forum Jump:

User Panel Messages

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